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
So I was having problems building. For the longest time. I would get this error:
error: bundling failed: Error: Unable to resolve module prop-types from C:\Users\x1\Documents\GitHub\Trusted-Score-Mobile\node_modules\react-native\Libraries\Components\ActivityIndicator\ActivityIndicator.js: Module prop-types does not exist in the Haste module map
When it was tryign to bundle.
Finally I figured out i had to npm i prop-types because it is in the "dependencies". Should we maybe move it to "devDependencies"?
Thanks for issue and sorry for delayed reply. Is this still happening in recent RN versions? Please let me know if problem is still there by commenting here or creating a new issue.
So I was having problems building. For the longest time. I would get this error:
When it was tryign to bundle.
Finally I figured out i had to
npm i prop-types
because it is in the "dependencies". Should we maybe move it to "devDependencies"?This was explained here - facebook/react-native#14302 (comment)
I'm just not sure. Do PropTypes stuff get stripped out in bundle procedure for production?
The text was updated successfully, but these errors were encountered: