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

svg?sprite Cannot find module svg-baker-runtime/symbol.js #75

Open
Purii opened this issue May 9, 2019 · 7 comments
Open

svg?sprite Cannot find module svg-baker-runtime/symbol.js #75

Purii opened this issue May 9, 2019 · 7 comments

Comments

@Purii
Copy link

Purii commented May 9, 2019

Thanks for your awesome library!

Unfortunately I'm unable to get svg sprites working.
After starting up the dev server it throws the following error:

Error: Cannot find module './node_modules/svg-baker-runtime/symbol.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:655:15)
    at Function.Module._load (internal/modules/cjs/loader.js:580:25)
    at Module.require (internal/modules/cjs/loader.js:711:19)
    at require (internal/modules/cjs/helpers.js:14:16)

I set it up as written in the README.md on a new next.js project (using yarn create next-app).
The file symbol.js is in the correct folder inside node_modules/svg-baker-runtime. Seems that the relative path to node_modules is wrong?

Any ideas?

@Emiliano-Bucci
Copy link

Hello! I have the same error after updating to last version; any clues? Thanks!

@cyrilwanner
Copy link
Owner

It looks like this bug was introduced by version 4.1.4 of svg-sprite-loader which was released a few days ago.
You can go back to 4.1.3 with npm install svg-sprite-loader@4.1.3 until I figure out if next-optimized-images does something wrong or if it is indeed a bug in the sprite loader.

@MaksPapirovnyk
Copy link

Had the same issue, try downgrade version to npm install svg-sprite-loader@4.1.2

@Emiliano-Bucci
Copy link

Emiliano-Bucci commented Sep 1, 2019

@cyrilwanner Is there any update on this issue? Still having issues with the @4.1.6 :/

@mikevercoelen
Copy link

Same problem here

@kvlsrg
Copy link

kvlsrg commented Dec 8, 2019

Related to: JetBrains/svg-sprite-loader#186

@semirart
Copy link

The issue is fixed in svg-sprite-loader@5.0.0.

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

7 participants