Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Deploy issue on heroku #29

Closed
vinaybedre opened this issue Nov 13, 2017 · 1 comment
Closed

Deploy issue on heroku #29

vinaybedre opened this issue Nov 13, 2017 · 1 comment

Comments

@vinaybedre
Copy link

Hi,

Clone the template via vue-cli, run npm run build, deploy on heroku, I get a error on heroku hosting,
Error: Cannot find module 'babel-runtime/core-js/promise' from '/app/public'

@vinaybedre
Copy link
Author

This can be handled by providing heroku-postbuild.
package.json should look something like this

    "scripts": {
        "dev": "node server",
        "start": "cross-env NODE_ENV=production node server",
        "build": "rimraf dist && npm run build:client && npm run build:server",
        "build:client": "cross-env NODE_ENV=production webpack --config build/webpack.client.config.js --progress --hide-modules",
        "build:server": "cross-env NODE_ENV=production webpack --config build/webpack.server.config.js --progress --hide-modules",
        "heroku-postbuild": "npm run build"
    },

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

No branches or pull requests

1 participant