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

Cannot read property 'version' of undefined #451

Open
Emiliano-Bucci opened this issue Apr 13, 2021 · 6 comments
Open

Cannot read property 'version' of undefined #451

Emiliano-Bucci opened this issue Apr 13, 2021 · 6 comments

Comments

@Emiliano-Bucci
Copy link

Do you want to request a feature, report a bug or ask a question?
Bug

What is the current behavior?
I get the error Cannot read property 'version' of undefined

What is the expected behavior?
It should work fine without error.

I keep getting the Cannot read property 'version' of undefined error using svg-sprite-loader with next-optimized-images (Next.js), and only if I use Webpack 5 through next.config.js (using Webpack 4.x everything works fine).

Please tell us about your environment:

  • Node.js version: v12.16.3
  • webpack version: v5.x
  • svg-sprite-loader version: v6.0.5
  • OS type & version: Mac BigSur
@KingPengZero
Copy link

Is there a solution?

Or other solutions?

@d3x42
Copy link
Contributor

d3x42 commented Apr 19, 2021

Please provide a repository with a reproduced issue.

@KingPengZero
Copy link

Please provide a repository with a reproduced issue.

https://github.com/AlexisWalravens/svg-sprite-loader-nextjs-bug-example

@LuudJanssen
Copy link
Contributor

I made a PR for this issue (#452). Could be that this is actually an issue on Next.js's side, but don't have the in-depth knowledge to say anything about that.

@d3x42
Copy link
Contributor

d3x42 commented Apr 23, 2021

published: [email protected]

Please close the issue if it works for you.

@Emiliano-Bucci
Copy link
Author

Now i get this error -> #449

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

4 participants