nanoid: Not working with expo
Expo SDK: 49.0.0 After following the instructions at https://github.com/ai/nanoid#react-native , I get:
Android Bundling failed 403ms
The package at "node_modules/nanoid/index.js" attempted to import the Node standard library module "node:crypto".
It failed because the native React runtime does not include the Node standard library.
About this issue
- Original URL
- State: open
- Created 4 months ago
- Comments: 21 (10 by maintainers)
Separeted manual import for browser version is not a long-term solution because you can’t change import inside other libraries.
It was only a test.