Webpack-Setup | An ideal project setup for any project using Webpack | Style Language library
kandi X-RAY | Webpack-Setup Summary
kandi X-RAY | Webpack-Setup Summary
An ideal project setup for any project using Webpack
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Webpack-Setup
Webpack-Setup Key Features
Webpack-Setup Examples and Code Snippets
Community Discussions
Trending Discussions on Webpack-Setup
QUESTION
I have built a simple react app, which for some reason, fails when I deploy to heroku... The build appears to be successful, but my content doesn't show/there's an error.
When I check my heroku logs, here's what i get. But I'm not sure exactly, what's the issue...:
Here's my github too, so you can see the code/web pack details etc:
...ANSWER
Answered 2018-May-29 at 13:41The issue you are having is that you are using webpack-dev-server
to run your project. This package is defined under devDependencies in your package.json, which means when you deploy on heroku, it (heroku) will run build for production which means all devDependencies will not be included and hence the error
sh: 1: webpack-dev-server: not found
So if you really, really want to run a dev server in a production environment, then include webpack-dev-server in the dependecies section of your package file as opposed to devDependencies.
If not, which is what I would suggest, then follow on this. It will take you through on how to prepare your environment for deploying on heroku for production.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Webpack-Setup
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page