-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cannot read property 'compile' of undefined when running ./bin/webpack-dev-server #1303
Comments
I'm seeing the same thing with: Ruby: 2.5.0 |
I was having the same issue with: I was following the Readme instructions to upgrade( |
I can confirm. Sticking with 2.11.1 works for the interim. |
Thanks, Terit. I was running into the same issue and that fixed it. |
Ruby: 2.3.3 Downgrading to v2.11.1 did the trick! Thank you! |
Node: 9.6.1 Downgrading fixed the issue for me too. |
Ditto, downgrading solved the problem. Thanks. |
I experienced the same. Thank you for this solution. |
I met the same issue, and downgrading webpack-dev-server to 2.11.1 fixed it. |
Thanks everyone. We will update Webpacker to use webpack 4.0 soon - in meantime please use the supported dev server version. |
Had the same issue. @Terit solution worked for me. |
Had this issue too/ @Terit solution helps me |
yarn upgrade webpack-dev-server@^2.11.1 rails/webpacker#1303 (comment)
I confirm that @Terit solution works! |
Yep downgrading to 2.11.1 works. Rails 5.1.5 |
Sadly downgrading is the only solution, for now, any permanent fix in the pipeline? |
Yes, #1316 is on its way |
Ruby 2.4.0 Received error with webpack-dev-server@3.1.1 included by the new Rails project generator. Downgrading to version 2.11.1 fixed the issue. |
It seems like there should be some version ranges specified going to ease confusion. I'd be more than happy to help with implementation. My proposal is to
Happy to help out, and I know that there is a shift to webpack 4 where this won't be an issue soon, but that's not to say there won't be the same issue in the future. |
Released 3.3.1 that restricts dev server to 2.x.x |
@gauravtiwari Awesome 👏 |
I was having issues with both webpack v4 and webpack-dev-server v3 and the only solutions I've seen from threads has been to downgrade both of them. Is this something that no one has figured out how to migrate or is there actually something wrong with the new versions and/or webpack-cli? |
|
Going to close this one, since this isn't an issue with the current version of webpacker. |
Same issue, same solution! |
Belongs to #332 Ref: rails/webpacker#1303
Same issue, same solution. Thanks for all |
Operating System: Windows i'm having the same problem of with this command: |
The problem with downgrading is that there's a CVE for webpack-dev-server < 3.11.1 - https://nvd.nist.gov/vuln/detail/CVE-2018-14732 |
use webpack-dev-server@2.9.1 version |
Reverting back to version 2.9.1 still shows the security hole:
|
ruby 2.3.4
rails 5.1.4
node 8.9.4
I get next error when trying to run ./bin/webpack-dev-server
Does anyone faced with the same error?
The text was updated successfully, but these errors were encountered: