Open koddr opened 6 years ago
For the time being, give this a try:
npm install --save-dev babel-preset-env
It looks like preset-env
was moved from npmjs to a private babel
registry, so the old way to install it was babel-preset-env
and the new way is @babel/preset-env
. My guess from the error message is that Vue2 Google Maps is expecting the old method and for some reason (maybe a configuration somewhere in one of the package.json files) it's not being automatically loaded when you install vue2-google-maps
A long-term fix (if I'm correct) would be for Vue2 Google Maps to switch over to the @babel/preset-env
method (which is the newer / preferred way to include preset-env
, and it's how you're already including it)
Hello. I have some strange error in my build, using your Vue-component.
package.json
:$ npm run watch
:How to fix it? Help me please.