Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SSR build start image error: SyntaxError: Invalid or unexpected token #76

Open
MujunZ opened this issue Feb 11, 2020 · 1 comment
Open

Comments

@MujunZ
Copy link

MujunZ commented Feb 11, 2020

I've been playing around with the ssr branch and got some issue when using a image in the assets folder and run npm run start.

"App.js"

...
import logo from "../src/assets/image-logo.png";
...
<header>
          <img src={logo} alt="" />
          <Link to="/">Adopt Me!</Link>
</header>
....

Here's the error message
image

It works well if I run npm run dev, but doesn't work when I run npm run start. I thought that's some babel issue, but couldn't figure it out.

Here's my branch for more information, the last commit is the change.

Please help. Thanks 🙇‍♀️

@Ayan-Ali
Copy link

having the same issue with CRA but SRR

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

No branches or pull requests

2 participants