-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Fix error with eslint due to variable initialization before checking, eslint was set #1154
Comments
Hi there! What is the exact error that you get when building for production? And was it necessary to move all of those Your situation makes sense... but I am having a hard time seeing why any of those Cheers! |
The same here. With fix https://github.com/symfony/webpack-encore/commit/bc34f910dfa189016a6f7563927ea752479c0695 from @wesoledi everything works. Before fix I got errors:
|
Yes :) yes, it was it: sync-rpc error. Thx @lu43n. |
Interesting, maybe we can reconsider solutions described in #985 (comment)... But for now, can someone of you can open a PR for bc34f91 ? Thanks |
created |
Thanks! |
This commit reverts part of 6ec9eaf New version of Webpack Encore is not compatible with shared hosting. symfony/webpack-encore#1154 symfony/webpack-encore#1175 Fixes #218
Closing, as ESLint integration has been removed in #1309 for the next major version of Encore (5). |
In some projects, with symfony 6 with encore used, to work with sass+vue, without external eslint configuration, there may be error while building final dist/build files. The reason was, it could not init eslint, even it was disabled in webpack configuration (or more precisly: not enabled). Webpack-encore still wanted to run it, before checking if "useEslintPlugin" was set.
To fix this, I moved variable initialization to the block, after checking this variable, because it is used only inside if-block anyway. So there is no need to init these before.
Here is my compare: bc34f91
The text was updated successfully, but these errors were encountered: