-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import CommonJS module #385
Comments
code
error info:
|
temporiate fix it with add 'vue-toastification' to ssr.noExternal in vite.config.ts
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Here's the code that I'm trying to convert to SSG:
When I'm importing from a CommonJS module, e.g. @googlemaps/js-api-loader I'm getting the following error:
If I switch my code as the example in the error shows:
...then I'm getting a different error:
Reproduction
Create a new project following
npm create vue@latest
, convert it to vue-ssg following README, add the import example that I pasted in the beginning.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: