Uppy throw nanoid is not a function

Dear everyone, I’m facing an issues, I’m using uppy, uppy/react latest version with react-scripts: 5.0.0 but when i try to use component of Uppy, it keep showing error:

  • “nanoid is not a function”,
    anyone have the solution?

You can take a look at the answers in this issue: Uppy throws with latest create-react-app (react-scripts 5), Uncaught TypeError: nanoid is not a function · Issue #3376 · transloadit/uppy · GitHub.

It’s an issue on the CRA side, unfortunately.