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
See the attached project, which works with css-loader@1.0.1 but fails with css-loader@2.0.0.
The text was updated successfully, but these errors were encountered:
Lattyware
changed the title
undefined URL.
URL used multiple times results in getting "undefined" in output.
Dec 9, 2018
Lattyware
changed the title
URL used multiple times results in getting "undefined" in output.
URL used multiple times results in getting "undefined" in output as of v2.0.0.
Dec 9, 2018
Lattyware
changed the title
URL used multiple times results in getting "undefined" in output as of v2.0.0.
[2.0.0] URL used multiple times across imported files produces "undefined".
Dec 9, 2018
Lattyware
changed the title
[2.0.0] URL used multiple times across imported files produces "undefined".
[2.0.0] URL used multiple times across imported files produces "undefined" rather than expected URL.
Dec 9, 2018
Sorry not related to css-loader, problem in extract-loader, problem here https://github.com/peerigon/extract-loader/blob/master/src/extractLoader.js#L144, need rewrite logic, maybe use Object/Map (like { __EXTRACT_LOADER_PLACEHOLDER__000_000: 'asset.png' }) and get asset url based __EXTRACT_LOADER_PLACEHOLDER__000_000 index.
I've also encountered this issue. I can see what you mean regarding the issues in extract-loader's code, but why did this only surface with css-loader 2.0.0+? Reverting to an earlier version of the css-loader plugin solves this issue.
After upgrading to 2.0.0 from 1.0.1, I am getting
url(undefined)
in my output CSS where I previously got a valid URL.This seems to happen when the URL is referenced multiple times across imported files - after the first reference
undefined
is output.Expected Behavior
The URL should be the same each time it is referenced.
Actual Behavior
undefined
is output instead of the URL after the first reference.Code
Produces:
With
css-loader@2.0.0
:With
css-loader@1.0.1
:How Do We Reproduce?
See the attached project, which works with
css-loader@1.0.1
but fails withcss-loader@2.0.0
.The text was updated successfully, but these errors were encountered: