Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axios module error 'should export a function' #84

Closed
silverbackdan opened this issue Jul 24, 2017 · 2 comments
Closed

axios module error 'should export a function' #84

silverbackdan opened this issue Jul 24, 2017 · 2 comments

Comments

@silverbackdan
Copy link
Contributor

silverbackdan commented Jul 24, 2017

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?

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"
  }
}
This question is available on Nuxt.js community (#c51)
@pi0
Copy link
Member

pi0 commented Jul 24, 2017

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)

@pi0 pi0 closed this as completed Jul 24, 2017
@silverbackdan
Copy link
Contributor Author

You rock as always!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants