Skip to content
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

Nuxt webpack error starting with 0.1.4 #11

Closed
wobsoriano opened this issue Aug 27, 2021 · 1 comment
Closed

Nuxt webpack error starting with 0.1.4 #11

wobsoriano opened this issue Aug 27, 2021 · 1 comment

Comments

@wobsoriano
Copy link
Contributor

wobsoriano commented Aug 27, 2021

Starting with 0.1.4, running the dev server throws this

/Documents/tests/nuxt-script-setup-test/node_modules/webpack/lib/SourceMapDevToolPlugin.js:75
		if (source.startsWith("webpack://")) {
		           ^

TypeError: Cannot read property 'startsWith' of null

Test: https://github.com/wobsoriano/nuxt-script-setup-test

Tried doing rm -rf node_modules yarn.lock reinstall 0.1.4 and got the same error.

@mu-yu
Copy link

mu-yu commented Aug 27, 2021

same with Vue-cli project:

Created a project with @vue/cli 4.5.12, and then import this plugin followed by the readme.

after everything has been done, I run npm run serve , and shows the following error.

 ERROR  Failed to compile with 2 errors

 error  in js/about.js

D:\code\play\vue2-setup2\node_modules\unplugin\dist\webpack\loaders\transform.cjs??ref--37-0!D:\code\play\vue2-setup2\node_modules\vue-loader\lib\loaders\pitcher.js??ref--4!D:\code\play\vue2-setup2\node_modules\cache-loader\dist\cjs.js??ref--0-0!D:\code\play\vue2-setup2\node_modules\vue-loader\lib\index.js??vue-loader-options!D:\code\play\vue2-setup2\node_modules\eslint-loader\index.js??ref--13-0!D:\code\play\node_modules\unplugin\dist\webpack\loaders\transform.cjs??ref--36-0!D:\code\play\vue2-setup2\src\views\About.vue?vue&type=template&id=039c5b43&
Cannot read property 'startsWith' of null

 error  in js/app.js

D:\code\play\vue2-setup2\node_modules\unplugin\dist\webpack\loaders\transform.cjs??ref--37-0!D:\code\play\vue2-setup2\node_modules\unplugin\dist\webpack\loaders\transform.cjs??ref--37-0!D:\code\play\vue2-setup2\node_modules\vue-style-loader\index.js??ref--8-oneOf-1-0!D:\code\play\vue2-setup2\node_modules\css-loader\dist\cjs.js??ref--8-oneOf-1-1!D:\code\play\vue2-setup2\node_modules\vue-loader\lib\loaders\stylePostLoader.js!D:\code\play\vue2-setup2\node_modules\postcss-loader\src\index.js??ref--8-oneOf-1-2!D:\code\play\vue2-setup2\node_modules\sass-loader\dist\cjs.js??ref--8-oneOf-1-3!D:\code\play\vue2-setup2\node_modules\cache-loader\dist\cjs.js??ref--0-0!D:\code\play\vue2-setup2\node_modules\vue-loader\lib\index.js??vue-loader-options!D:\code\play\node_modules\unplugin\dist\webpack\loaders\transform.cjs??ref--36-0!D:\code\play\vue2-setup2\src\App.vue?vue&type=style&index=0&lang=scss&
Cannot read property 'startsWith' of null

@antfu antfu closed this as completed in 3dc0c2c Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants