-
Notifications
You must be signed in to change notification settings - Fork 35
Use shim in nuxt report an error when build #149
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
Comments
Hello, I am not completely sure why this is happening. You could try to configure the build following instructions for webpack 5 (use Also, could you share the part of configuration where you set the shim? |
@dwightjack webpack 5 is fine, nuxt is using webpack4 |
@dwightjack you mean use webpack5 config instead? |
The build behavior is strange. Nuxt still uses webpack 4 but the behaviour reported in the error suggests that the tool is trying to load I've created a demo installation and I cannot replicate the issue: https://github.com./dwightjack/demo-nuxt-vue-types Re you using any particular setup (for example: |
@dwightjack online example |
@Ttou so the issue might be related to the version of node you're using. When setting the shim alias try one of the following:
or
I will update the docs in the next few days. |
I see. That's another issue I already found and was going to fix in the next few days. Sorry for the problem, for now please don't use the shim. I will inform you as soon as the issue is fixed 🙇 |
@Ttou I've published a first patch that should fix your issue in Let me know if it works. |
@dwightjack fixed |
nuxt: 2.15.7
vue-types: 4.0.0
repo: link
The text was updated successfully, but these errors were encountered: