-
-
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
[email protected] #1017
Comments
Concerning the second error: I fixed it by using the following code in the webpack.config.js
|
Just to add on here, deleting Encore.configureDevServerOptions(options => ({
...options,
allowedHosts: 'all',
client: {
webSocketURL: 'wss://localhost:8080/ws'
},
})); |
@mfu-aroche are you accessing your site from a localhost address? E.g. localhost:3000? That would work. My change is needed if you're using a non localhost url like Lando or similar 👍 |
I'm using the following configuration, which seems to work just fine: Encore.configureDevServerOptions(options => {
options.allowedHosts = 'all';
options.https = {
cert: '/etc/apache2/ssl/domain.dev/fullchain.pem',
key: '/etc/apache2/ssl/domain.dev/privkey.pem',
};
delete options.client.host;
}) The HMR server is access through https://localhost.domain.dev:8999/. |
There seems to be more issues when I have encore in separate container as main application. For [email protected] I had to use "setPublicPath" with absolute path + domain, and setmanifestKeyPrefix. I needed to setup --keep-public-path and --client-web-socket-url also, but for some reason I still cant make hot reloading to work... I have tried almost anything to get rid "...hot-update.json not found" error... |
@Mareva-dev webSocketUrl should start with "ws:" not with "wss:". |
Hi everyone! Could I have a few of you hack in the fix from #1031 to see if it works for you? Thanks! |
setting |
@weaverryan My final method looks like:
This approach also doesn't require the hack in #1031. |
Seems like I'm running into this issue: https://stackoverflow.com/questions/62974405/webpack-hmr-browser-not-outputting-hot-update-json When I update an asset (with error in console and browser reloading all the time), files are recompiled and hot-update.json is finally generated. It is not generated when containers are launched for the first time... Any help? |
Hi!
[email protected]
is released and I encountered 2 errors when installing a new app using Encore :firewall
was renamed (reported here [Frontend/Encore] WebpackDevServer 4.0.0-rc.0 renamed the "firewall" option into "allowedHosts" symfony-docs#15542)host
property in theclient
option see code / see related issue#1017 (comment)
The last one cannot be changed without forcingwebpack-dev-server
to stay at4.0.0-beta.3
.Have a nice day!
The text was updated successfully, but these errors were encountered: