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

error with inline SVG in NextJS #984

Open
qifei opened this issue Dec 21, 2024 · 2 comments
Open

error with inline SVG in NextJS #984

qifei opened this issue Dec 21, 2024 · 2 comments

Comments

@qifei
Copy link

qifei commented Dec 21, 2024

🐛 Bug Report

Server Error
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

To Reproduce

Newly created NextJS project

import Star from "./star.svg"

const Example = () => (
  <div>
    <Star />
 </div>
)
@1MPULSEONE
Copy link

Are you using a turbo pack? If yes, try running the project without it

@qifei
Copy link
Author

qifei commented Dec 27, 2024

Yes.
Thank you, I’ll try it later.

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

2 participants