У меня есть проект VueJS.Я работаю на своем MacBook (Mojave 10.14.6, узел 8.9.4, npm 5.6.0) без каких-либо проблем (npm install && yarn dev).Но есть проблема при работе в Ubuntu 18.04 (узел 8.9.4, npm 5.6.0)
yarn run v1.17.3
$ cross-env NODE_ENV=development node build/dev-server.js
ERROR Failed to compile with 1 errors 06:57:46
This dependency was not found:
* !!babel-loader!./Payment.js in ./src/component/PayMent/PayMent.vue
To install it, you can run: npm install --save !!babel-loader!./Payment.js
> Listening at http://localhost:8686
Я пробовал
npm install
npm install babel-loader
Но проблема не решена
package.json
"devDependencies": {
"async": "^2.2.0",
"autoprefixer": "^7.1.0",
"awesome-typescript-loader": "^3.1.2",
"babel-core": "^6.0.0",
"babel-eslint": "^8.0.0",
"babel-loader": "^7.0.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-builtin-extend": "^1.1.2",
"babel-plugin-transform-runtime": "^6.0.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.0.0",
"babel-register": "^6.0.0",
"chalk": "^2.0.1",
"compression": "^1.6.2",
package-lock.json
"babel-loader": {
"version": "7.1.2"