node.js - Webpack not found, deploying to Heroku -


very new node , deploying heroku. have basic react app set , attempting deploy heroku. have pushed, app failing. when @ logs see sh: 1: webpack: not found (full log here)

i'm not what's going on, believe has package.json? starter template using such:

{     "name": "express-react-redux-starter",     "version": "1.0.0",     "description": "starter express, react, redux, scss applications",     "scripts": {       "dev": "webpack-dev-server --config ./webpack/webpack-dev.config.js --watch --colors",       "build": "rm -rf dist && webpack --config ./webpack/webpack-prod.config.js --colors",       "start": "port=8080 node start ./server.js",       "test": "mocha --compilers js:babel-core/register --require ./test/test_helper.js --recursive ./test",       "test:watch": "npm run test -- --watch",       "lint": "eslint src test webpack"     },     "keywords": [       "expressjs",       "reactjs",       "redux",       "react hot loader",       "react router",       "scss",       "webpack devevelopment configuration",       "webpack production configuration",       "airbnb eslint",       "pm2",       "mocha",       "chai"     ],     "repository": {       "type": "git",       "url": "git+https://github.com/dimitrimikadze/express-react-redux-starter"     },     "author": "dimitri mikadze",     "license": "mit",     "devdependencies": {       "autoprefixer": "^6.4.0",       "autoprefixer-loader": "^3.2.0",       "babel-core": "^6.8.0",       "babel-loader": "^6.2.4",       "babel-preset-es2015": "^6.6.0",       "babel-preset-react": "^6.5.0",       "babel-preset-stage-1": "^6.5.0",       "chai": "^3.5.0",       "chai-jquery": "^2.0.0",       "css-loader": "^0.23.1",       "eslint": "^2.10.2",       "eslint-config-airbnb": "^9.0.1",       "eslint-plugin-import": "^1.8.0",       "eslint-plugin-jsx-a11y": "^1.2.0",       "eslint-plugin-react": "^5.1.1",       "extract-text-webpack-plugin": "^1.0.1",       "html-webpack-plugin": "^2.16.1",       "jquery": "^2.2.3",       "jsdom": "^9.0.0",       "mocha": "^2.4.5",       "node-sass": "^3.7.0",       "react-addons-test-utils": "^15.0.2",       "react-hot-loader": "^1.3.0",       "sass-loader": "^3.2.0",       "style-loader": "^0.13.1",       "url-loader": "^0.5.7",       "webpack-dev-server": "^1.14.1"     },     "dependencies": {       "classnames": "^2.2.5",       "express": "^4.13.4",       "lodash": "^4.15.0",       "react": "^15.0.2",       "react-dom": "^15.0.2",       "react-redux": "^4.4.5",       "react-router": "^2.4.0",       "redux": "^3.5.2",       "webpack": "^1.13.0"     } } 

what doing incorrectly deployed? works great on localhost. cannot figure out how world life of me. many thanks!

ok -- has devdependencies vs. dependencies in package.json also, setting heroku config npm_config_production: false able resolve this. thx internet!


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -