-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
How to suppress warning with __FEATURE_ESM_BUNDLER_WARN__ ? #461
Comments
I added these flags instead:
Took me a while to understand I should just define those as Booleans, as the warning suggests. |
It won‘t return true if you configure the flags I mentioned in my above comment. However you will still receive a standard console message (probably logged) that you are running a development build. I couldn‘t get rid of that |
I tried to add the flags but i still get the warning. This is my vue.config.js:
Can anybody help me out? |
As far as I know you have to use
|
@Unkrass Thank you so much for taking the time to reply to me (i used your config). I tried but unfortunately still no luck. How do you import i18n in your Vue files? My setup is this:
i18n.js:
|
My setup is basically the same, except I have it all in my main.js (which I guess is what you meant instead of App.vue). Could you explain what exactly does not work? You also have to restart the app by executing still here is my main.js:
The only difference I could find is a Also in my
|
I'm sorry, i indeed ment main.js instead of App.vue. The thing that is not working is that i still get the warning: I indeed restarted (npm run serve in my case). I don't get it. I have now copied exactly your code but I still get the warning. package.json:
|
Okay, one more idea. I use the following packages, and none of the devDependencies you listed. Maybe you could try those:
Maybe the i18n CLI plugin interferes with the full installation. I'm just guessing though. |
@Unkrass I am receiving an error in the production build which uses the latest version of
|
@Unkrass I have been importing vue-i18n incorrectly, now It's fixed! |
Hi, I don't think this is fixed yet. Even if one sets all the necessary flags, on dev it will show the warning regardless, and this is because of the following:
The part with |
This might not be a bug, but maybe a missing part of the docs. I am using Vue 3 with Vue CLI and a vue.config.js. I had no luck adding it to chainWebpack like this, so how do I configure that flag?
Module versions
The text was updated successfully, but these errors were encountered: