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

Unable to resolve 'path' #948

Open
fbele opened this issue Mar 14, 2024 · 0 comments
Open

Unable to resolve 'path' #948

fbele opened this issue Mar 14, 2024 · 0 comments

Comments

@fbele
Copy link

fbele commented Mar 14, 2024

Hi,

I am trying to use the react-native-svg-transformer library in my React Native project, but when I'm trying to implement it, I get an error in my Simulator during build time:

`Unable to resolve module path from .../node_modules/@svgr/core/dist/index.js: path could not be found within the project:

var path = require('path')`

image

And the console states the following:

The package at "node_modules/@svgr/core/dist/index.js" attempted to import the Node standard library module "path". It failed because the native React runtime does not include the Node standard library.

Which is obvious since it's not a Node.js project, but I believe this library was created specifically for React Native so I'm wondering why this error is being thrown?

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