Closed silverbackdan closed 7 years ago
I've run npm update and now I am getting the error [nuxt] Module [@nuxtjs/axios,[object Object]] should export a function
npm update
[nuxt] Module [@nuxtjs/axios,[object Object]] should export a function
Bit strange, is this a bug here or caused by another update?
npm -v 5.3.0
package.json if it helps:
{ "name": "nuxt-express-symfony", "version": "1.0.0", "description": "Nuxt.js project", "private": true, "scripts": { "dev": "cross-env HOST=127.0.0.1 PORT=8000 backpack dev", "build": "nuxt build && backpack build", "start": "cross-env HOST=0.0.0.0 PORT=8000 NODE_ENV=production node build/main.js", "precommit": "npm run lint", "lint": "eslint --ext .js,.vue --ignore-path .gitignore ." }, "dependencies": { "@nuxtjs/axios": "^2.2.4", "@nuxtjs/component-cache": "^0.1.5", "@nuxtjs/font-awesome": "^1.0.2", "@nuxtjs/google-analytics": "^0.2.0", "@nuxtjs/manifest": "^1.6.1", "@nuxtjs/workbox": "^0.4.0", "babel-loader": "^7.1.1", "body-parser": "^1.17.2", "bulma": "^0.4.4", "connect-sqlite3": "^0.9.9", "cookie-parser": "^1.4.3", "cross-env": "^5.0.0", "dotenv": "^4.0.0", "express": "^4.15.3", "express-session": "^1.15.4", "install": "^0.10.1", "jwt-decode": "^2.2.0", "lodash": "^4.17.4", "moment": "^2.18.1", "node-pre-gyp": "^0.6.36", "node-sass": "^4.5.3", "npm": "^5.3.0", "nuxt": "^1.0.0-alpha2", "sass-loader": "^6.0.6", "set-cookie-parser": "^2.0.0", "source-map-support": "^0.4.15", "vue-clickaway": "^2.1.0", "vue-cookie": "^1.1.4", "vue-quill-editor": "^2.2.6", "webpack-dev-middleware": "^1.11.0" }, "devDependencies": { "babel-eslint": "^7.2.3", "backpack-core": "^0.3.0", "eslint": "^3.19.0", "eslint-config-standard": "^10.2.1", "eslint-loader": "^1.9.0", "eslint-plugin-html": "^2.0.3", "eslint-plugin-import": "^2.7.0", "eslint-plugin-node": "^4.2.3", "eslint-plugin-promise": "^3.5.0", "eslint-plugin-standard": "^3.0.1" } }
Hi. Please upgrade nuxt to alpha.5 & remote yarn.lock/package.lock.json and install again :) (If you check node_modules/nuxt/package.json It is alpha2)
alpha.5
node_modules/nuxt/package.json
alpha2
You rock as always!
I've run
npm update
and now I am getting the error[nuxt] Module [@nuxtjs/axios,[object Object]] should export a function
Bit strange, is this a bug here or caused by another update?
package.json if it helps: