Closed scott-ln closed 4 years ago
It is bug on extract-loader
side, please open an issue in their repo, as a workaround you can set esModule: false
(please read https://github.com/webpack-contrib/file-loader#esmodule)
@evilebottnawi Will do, thank you.
Expected Behavior
Build succeeds.
Actual Behavior
A build error occurs. It makes reference to
extract-loader
, but the error is only triggered after installingfile-loader
5.1.0. Downgrading to 4.3.0 removes the error. The error seems to be occurring while processinghome.scss
but also mentions a.woff
font file so I imagine it's occurring when the stylesheet loading fonts is encountered.Code
Relevant parts of webpack config
main.scss
fonts.scss
How Do We Reproduce?