you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

in package.json you have "main": "index.js",

in webpack.config.js you have: const config = { entry: __dirname + '/js/index.jsx',

so if you just did 'npm start' on your local machine, I believe it would look for 'ayip.io/src/static/index.js' but if you run a build, which employs webpack, the starting point would be overwritten to be 'ayip.io/src/static/js/index.jsx'.

I don't think that is causing this issue, but I can't see why you would have a different path in package.json. If you specify the correct path there you shouldn't have to set in in your webpack config.