Closed Shing-Ho closed 1 month ago
I would expect your node modules to not be correctly installed or not of the correct version, as I cannot replicate your issue at all in a fresh ts project.
I am getting this error too. I would love to help debug this if anyone has any thoughts.
I'm facing the same issue with vite
Just a question, are you guys using vanilla JS or TypeScript? Cannot reproduce on TS at least
I'm using typescript with vite and react 17
I was also using VITEjs. I had to copy the node module and use the source files as a vendor folder to get it working.
The issue seems to be related to how the npm module is compiled.
any solution for this bug, i am using vite and react 17
It’s an issue with compiling the react lazy imports.
I imported the npm module code into our code base as a vendor folder and it worked fine.
@rememberlenny so how we can add it to the project without facing the bug, can you please describe the steps to added it ??! thank you
restarting the server worked for me
Be sure to search for your issue before opening a new one.
Current Behavior
It's suddenly happened today. Suddenly it's showing Uncaught TypeError: (0 , _memoizeOne.default) is not a function
Expected Behavior
It shoudn't show
Steps to Reproduce
1.import ReactPlayer from 'react-player'; 2.
Environment
Other Information