Home

Issue: 467

Error: Cannot find module 'vue' on Heroku;

[issue link]

Hello there.
I’ve created a new app using starter template, it’s almost empty, works fine on local machine and gives me this error on heroku:
screen shot 2017-03-28 at 11 23 02 pm
I have another nuxt app there, with older nuxt version and it works as intended, so I don’t know what it could be.

Adding package.json, maybe it helps.

 "name": "<>",
  "version": "1.0.0",
  "description": "<>",
  "author": "<>",
  "private": true,
  "dependencies": {
    "css-loader": "^0.27.3",
    "firebase": "^3.7.3",
    "nuxt": "latest",
    "vue": "^2.2.6"
  },
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "nuxt generate",
    "lint": "",
    "precommit": "npm run lint",
    "heroku-postbuild": "npm run build"
  },
  "devDependencies": {
    "node-sass": "^4.5.0",
    "sass-loader": "^6.0.2",
    "webpack": "^2.2.1"
  }
This question is available on Nuxt.js community (#c405)