Skip to content
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

Unfound source map when importing CSS with webpack #557

Open
brendon opened this issue Mar 14, 2021 · 4 comments
Open

Unfound source map when importing CSS with webpack #557

brendon opened this issue Mar 14, 2021 · 4 comments
Labels

Comments

@brendon
Copy link
Contributor

brendon commented Mar 14, 2021

Describe the bug
When importing dist/tui-image-editor.css using webpack:

import 'tui-image-editor/dist/tui-image-editor.css'

We get the following output in the console:

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (index.css.map, line 0)
https://server.test/packs/css/src/css/index.css.map

To Reproduce
Steps to reproduce the behavior:

import 'tui-image-editor/dist/tui-image-editor.css'

Expected behavior
I'd expect the source map to load correctly. It appears that webpack is unable to find it.

Additional context
Removing the source map declaration would fix this problem. There's probably a more elegant way though.

/*# sourceMappingURL=src/css/index.css.map */

@brendon brendon added the Bug label Mar 14, 2021
@lja1018
Copy link
Contributor

lja1018 commented Mar 17, 2021

@brendon
Thank you for reporting.
If you are interested, please also PR.

@brendon
Copy link
Contributor Author

brendon commented Mar 17, 2021

I'd love to but I can't figure out how the source map line is being generated. There doesn't seem to be an equivalent in the source code so I assume it's generated by some build process before release?

@lja1018
Copy link
Contributor

lja1018 commented Mar 25, 2021

@brendon
I'm sorry for the late reply. This may be due to a previous change in the webpack configuration. I'll figure out the cause and resolve it. :)

@brendon
Copy link
Contributor Author

brendon commented Mar 25, 2021

Thanks @lja1018 :D Let me know if there's anything I can do/test on this end :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants