You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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')`
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?
The text was updated successfully, but these errors were encountered:
Sorry for the late reply, but I personally have not see that error yet. In case you did not manage to solve this yet: would you happen to have some kind of demo project that you could share where the error gets thrown?
Thanks for your reply! Unfortunately I haven't been able to resolve my issue yet.
I am using Ignite boilerplate and Expo Development Build. There is nothing else "special" about what I have.
I'm really wondering why I'd get such an error, since seemingly it's working for so many other people.
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')`
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?
The text was updated successfully, but these errors were encountered: