while executing npm run dev
it throws this error
Trace: The node type SpreadProperty has been renamed to SpreadElement
anyhow it build successfully at the end but takes a lot of time. and ithing it should appear,
Package.json
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"@babel/preset-env": "^7.6.0",
"@mdi/font": "^4.4.95",
"axios": "^0.19",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-polyfill": "^6.26",
"browser-sync": "^2.26.7",
"browser-sync-webpack-plugin": "^2.0.1",
"cross-env": "^6.0",
"laravel-mix": "^4.1.4",
"resolve-url-loader": "^3.1.0",
"sass": "^1.22.12",
"sass-loader": "^7.3.1",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"vue-template-compiler": "^2.6.10",
"vuetify": "^2.0",
"vuetify-loader": "^1.3.0",
"vuetify-toast-snackbar": "^0.6",
"vuex": "^3.1"
},
"dependencies": {}
}
.babelrc
{
"plugins": ["transform-object-rest-spread"],
"presets": ["@babel/preset-env"]
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire