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

nanoid is not a function #3687

Closed
Ionut-Milas opened this issue May 3, 2022 · 1 comment
Closed

nanoid is not a function #3687

Ionut-Milas opened this issue May 3, 2022 · 1 comment
Labels

Comments

@Ionut-Milas
Copy link

Hello,

I am using React 18 (cra) with Uppy 2.1.10 with drag-and-drop and I keep hitting the nanoid error.
I commented out the React.StrictMode but no luck.

I added below the package.json content.

{ "name": "test-app", "version": "0.1.0", "private": true, "dependencies": { "@aws-amplify/ui-react": "^2.0.0", "@uppy/aws-s3-multipart": "^2.2.2", "@uppy/core": "^2.1.10", "@uppy/drag-drop": "^2.0.7", "@uppy/golden-retriever": "^2.0.6", "@uppy/progress-bar": "^2.0.4", "aws-amplify": "^4.3.20", "axios": "^0.26.1", "bootstrap": "^5.1.3", "prop-types": "^15.8.1", "react": "^18.1.0", "react-bootstrap": "^2.3.0", "react-dom": "^18.1.0", "react-dropzone": "^14.1.1", "react-icons": "^4.3.1", "react-router-dom": "^6.3.0", "react-scripts": "^5.0.1", "reactstrap": "^9.0.2", "sass": "^1.51.0", "uuid": "^8.3.2", "web-vitals": "^2.1.0" }, "scripts": { "start": "react-scripts start", "dev": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }
Screen Shot 2022-05-03 at 16 09 11

@Murderlon
Copy link
Member

Closing as duplicate of #3537 and #3376. It's a problem on the CRA side, not ours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants