-
Notifications
You must be signed in to change notification settings - Fork 91
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
When requiring an image path I have to add .default #145
Comments
Found this happening for images that are not inlined, either because they are too large or because ?url is set. Filetype doesn't seem to matter, happening with SVGs too. Quite problematic because the image can break when its file size changes. |
I'm getting the same issue in v2.5.8 - not sure if it's related to using TypeScript? In my project all image |
The issue is definitely as @durchanek described. Ran into the same case yesterday where |
Thank you all for the bug report! It should indeed not require the I think I was now able to reproduce the error. It appears to happen when you either manually install a newer file-loader version or any other plugin/package installs it. It should now be fixed and I just published a new version: |
@cyrilwanner Working great after the update. Thanks! |
@cyrilwanner that fixed it. Thanks! |
This isn't fixed issue for me, but I've fixed it by disabling fallback to url-loader through option |
Confirm. The issue is still there |
When importing an SVG I can require the path just fine
But when importing a
jpg
I have to import it like this:Notice the
.default
at the end. Is this intended?The text was updated successfully, but these errors were encountered: