Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in configuring webpack? #6

Open
GadhariSachin opened this issue Apr 5, 2019 · 2 comments
Open

Problem in configuring webpack? #6

GadhariSachin opened this issue Apr 5, 2019 · 2 comments

Comments

@GadhariSachin
Copy link

GadhariSachin commented Apr 5, 2019

Hi Michael,
I am new to django-webpack and I am getting the following error while running django server. I also gone through issue created regarding the same, but its not resolving my problem.

Error reading webpack-stats.json. Are you sure webpack has generated the file and the path is correct?

Can you help me out to get through??

@michaelbukachi
Copy link
Owner

Hello. Did you run ./node_modules/.bin/webpack to make sure the necessary files are created?

@MohammadRafik
Copy link

MohammadRafik commented Apr 14, 2019

I had the same problem, so what i did is cd to node_modules/.bin
then i typed webpack, what happens is that ur bundles folder that contains the app.js AND the webpack-stats.json file end up being created in node_modules/.bin instead of the root directory of the django project
if you move those files into the correct path that will fix ur issue

i did it this way because when i type ./node_modules/.bin/webpack in cmd it doesnt work, and my workaround caused the files to be saved in the wrong directory

for the future you could try running node_modules\.bin\webpack in the root directory of the django project

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

No branches or pull requests

3 participants