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

Can't handle image (and other non-JS) files #49

Open
olefrank opened this issue Jul 15, 2022 · 0 comments
Open

Can't handle image (and other non-JS) files #49

olefrank opened this issue Jul 15, 2022 · 0 comments

Comments

@olefrank
Copy link

I have a react project where I need to show some images (png).

I've tried using the example from the docs. When building I get this error:

[!] Error: Unexpected character '�' (Note that you need plugins to import files that are not JavaScript)
src/pages/landing/images/[email protected] (1:0)

I see 2 solutions:

  1. update the plugin to be able to handle non-JS files (actually I thought this was the main purpose of this plugin)
  2. update the docs with examples of how to handle static assets that are non-JS files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant