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
/bin/webpack-dev-server fails - "TypeError: chunk.sortModules is not a function" #852
Comments
@LeoArouca Could you please remove rm -rf node_modules
yarn
# (optional)
yarn upgrade @rails/webpacker |
Thank you @gauravtiwari . I tried that and still got the same results. I checked webpack and it seems this used to be an issue before version 3.3.0, but we are running 3.5.5 on our project here. Any other ideas? |
If your yarn.lock file still contains most of the dependencies that were part of webpacker2, I deleted them as they're now contained in webpacker3. I actually just deleted my yarn.lock and reinstalled everything to get things going again. |
Ok, thank you @akaspick , I upgraded these dependencies in package.json to get webpacker to compile: From To Then I had to run webpack-dev-server without --hot true to work. Now I am having some issues with a jpg asset not being found by rails in the manifest.
Now I am not sure this is the right place to solve this, or if its better to close this issue? thanks |
Heh, I JUST opened #854 for the exact same issue. I'd say you can close this one though. |
Cool, closing this one and following yours. Cheers! |
I was having this same issue and changing the versions as @LeoArouca suggested worked for me :) |
yeah! npm install --save-dev webpack@3.6.0 take my trouble. |
I am upgrading my rails 5.1.4 app webpacker gem to 3.0.1. After running:
bundle exec rails webpacker:install
And yarn install, when i try to run webpacker in dev mode and start my passenger it fails with this:
Versions
Ruby 2.4.2
Rails 5.1.4
Node 8.4.0
Yarn 1.0.2
Webpacker (gemfile) 3.0.1
Any suggestions?
The text was updated successfully, but these errors were encountered: