publicPath not being respected when accessing chunks on output module mode #19431
Unanswered
bsunderhus
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here's a minimal repro of the problem: https://stackblitz.com/edit/webpack-webpack-js-org-kxd532jl?file=README.md&terminal=build,start
Not sure if this is a bug or intentional,
It seems like
publicPath
is not being properly respected when loading chunks.To test this out:
npm start
will run two servers:main.js
If you try to access the application, if everything goes well you should see the number
1
on the page.This won't happen in this case as webpack will try to access the chunk without properly following
publicPatch
(publicPath is pointing tohttp://localhost:9010/
)Beta Was this translation helpful? Give feedback.
All reactions