-
-
Notifications
You must be signed in to change notification settings - Fork 162
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.utils.warn break build process. #214
Comments
Coming from |
I think this is related to it using a .mjs extension webpack/webpack#16000 (comment) and one fix is basically what is applied for .cjs here Related PR https://github.com/vueuse/vue-demi/pull/219/files |
We temporarily close this due to the lack of enough information. |
Hello @antfu Sorry to not provide a minimal repository as I am not sur you will want to look further about this behavior. This exception happen to me when using Webpack Module federation (https://webpack.js.org/concepts/module-federation/) in a micro frontend POC. To avoid the issue:
I defined the main.js in a bootstrap.js file and in main.js using: In vue.config.js I declared:
It worked fine with vue 2.6 and vue-demi 0.6.2 but not working with vue 2.7 and vue-demi 0.13.11. Look like as the import is async the vue demi load is loaded before vue is instancied and Vue.util is undefined. If you are willing to look into it I may produce a minimal reproduction but as this is an edge case maybe it's not in your priorities to handle this kind of issues. |
I build a component repo with vue.2.7 and vue-demi.0.13.11. The dist artifact is wired with a NPE.
It crushes the building process in my vue.3.0 project. Maybe an issue caused by #192 ?
The text was updated successfully, but these errors were encountered: