vuetable-2-tutorial icon indicating copy to clipboard operation
vuetable-2-tutorial copied to clipboard

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

Open muenalan opened this issue 6 years ago • 3 comments

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 avatar Aug 14 '18 11:08 muenalan

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.

muenalan avatar Aug 14 '18 12:08 muenalan

Did you solved it after ?

ooxiongoo avatar Aug 05 '19 18:08 ooxiongoo

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

muenalan avatar Aug 05 '19 22:08 muenalan