-
Notifications
You must be signed in to change notification settings - Fork 3
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
Vue cli webpack build fails when add three-musketeers #3
Comments
Thanks for the kind words, @johnEiratech! Glad you're finding it useful. There are so many more features that would be awesome to built into it, but one step at a time :) If you can publish a POC showing this error, I can take a look and see what's the issue. Also, not sure why your project is trying to build |
Thanks for this, @johnEiratech! At first glance, it's very strange that Vue is even trying to compile the Another thing is that when I comment out the font imports in your code, nearly all of the errors go away except for one. Will need to investigate further but need to know more about Vue's bundling process to find out more. |
it only seems to be clashing with css loaders, have you tried updating extract-text-webpack-plugin to mini-css-extract-plugin? I tried adding the minified library into index.html but i got errors. Have you tried that? If I could include it in the index.html file, that would work for me with some extra webpack configuration. |
Yeah those loaders have all been removed from the build Webpack config, @johnEiratech! I may just do a basic Webpack config outside of React and build the library that way—it may be easier that way. I used Do you have any boilerplates Webpack examples that could run this library? If so, I can try a quick swap and publish. |
I'll pull the code and try a different webpack config without react to build and see how it goes, I think I have one somewhere. I'll let you know how it goes 👍 |
Any luck with your work, @johnEiratech? |
Hi Farhad, |
Hello team. |
Hi,
I love this library so thanks for developing it:)
When I install it, it warns:
warning three-musketeers > [email protected]: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin
Then when i try to do a build, it fails with
Module build failed (from ./node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/file-loader/dist/cjs.js):
TypeError: Cannot read property 'context' of undefined
If I remove three-musketeers, everything works fine.
Any ideas?
The text was updated successfully, but these errors were encountered: