ratiw / vuetable-2-tutorial

MIT License
258 stars 67 forks source link

Error: Couldn't find preset "env" relative to directory "[snip]/vuetable-2-tutorial/node_modules/vuetable-2" #99

Open muenalan opened 6 years ago

muenalan commented 6 years ago

I followed the instructions, but got an exception in the shell

$ npm run dev

ERROR in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/vuetable-2/src/components/VuetablePagination.vue Module build failed: Error: Couldn't find preset "env" relative to directory "[snip]/vuetable-2-tutorial/node_modules/vuetable-2"

and the browser displays simple "Cannot GET /"

muenalan commented 6 years ago

npm install babel-preset-env

did help. However the browser will be empty, and the console will have:

SyntaxError: Unexpected identifier '_typeof'. import call expects exactly one argument.

ooxiongoo commented 5 years ago

Did you solved it after ?

muenalan commented 5 years ago

As far as I remember, I delete node_modules and reinstalled everything. No magic was needed.