Skip to content
Myr

Add CRA bug to docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent 4d50b9d · Browse files · 1 file+18 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+18 added−0 removed

  • other:+18 added−0 removed

1 file+18 added−0 removed

modified:README.md+18 added
41 unmodified lines
42* [Security](#security)43* [Usage](#usage)44 * [JS](#js)45 * [React](#react)46 * [Create React App](#create-react-app)47 * [React Native](#react-native)48 * [PouchDB and CouchDB](#pouchdb-and-couchdb)49 * [Mongoose](#mongoose)50 * [ES Modules](#es-modules)
145 unmodified lines
196<input id={'id' + this.id} type="text"/>197```198199200### Create React App201202Create React App has [a problem](https://github.com/ai/nanoid/issues/205)203with ES modules packages.204205```206TypeError: (0 , _nanoid.nanoid) is not a function207```208209If you have an error above, here is temporary fix:2102111. Use Nano ID 2 instead of 3: `npm i nanoid@^2.0.0`.2122. Vote for213 [pull request](https://github.com/facebook/create-react-app/pull/8768),214 that fix dual packages support.215216217### React Native218219React Native does not have built-in random generator.220
208 unmodified lines