You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #1102, we switched from the Webpack server to Webpack watch mode builds. Later in #1171, we implemented the server again with an option writeToDisk.
Now we have two commands yarn start:webpack and yarn webpack:serve. The former runs the builds in watch mode and the latter runs a server.
It seems logical to keep only one of these commands. However, dynamic imports do not work correctly with the Webpack server's hot reload feature.
Steps to Reproduce
Navigate to your local setup of ocw-hugo-themes
Update the command yarn start:webpack in package.json to
Webpack should detect this change and run a build. Refresh the page and the video will no longer work.
Undo your changes from step 5 and save.
Webpack should rebuild.
Expected Behavior
The video on the page works correctly.
Actual Behavior
The video on the page does not work correctly. And the console shows an error fetching a js file.
What needs to be done?
Investigate the issue. Find out the cause and whether or not this issue can be fixed.
In case this issue can be fixed, create a follow-up ticket to switch to the Webpack server in place of watch mode (i.e. use one of yarn start:webpack or yarn webpack:serve).
Background
In #1102, we switched from the Webpack server to Webpack watch mode builds. Later in #1171, we implemented the server again with an option
writeToDisk
.Now we have two commands
yarn start:webpack
andyarn webpack:serve
. The former runs the builds in watch mode and the latter runs a server.It seems logical to keep only one of these commands. However, dynamic imports do not work correctly with the Webpack server's hot reload feature.
Steps to Reproduce
yarn start:webpack
inpackage.json
toyarn start course
ocw-hugo-themes/course-v2/assets/course-v2.ts
Line 32 in 86ed293
Expected Behavior
The video on the page works correctly.
Actual Behavior
The video on the page does not work correctly. And the console shows an error fetching a js file.
What needs to be done?
Investigate the issue. Find out the cause and whether or not this issue can be fixed.
In case this issue can be fixed, create a follow-up ticket to switch to the Webpack server in place of watch mode (i.e. use one of
yarn start:webpack
oryarn webpack:serve
).Related Issues
Might be related webpack/webpack-dev-server#2792
The text was updated successfully, but these errors were encountered: