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
Giving the non EcmaScript module (only default export is available) Error #3690
Comments
Similar question, refer to this reply to see if it helps. |
Didn't help. Im using the SharePoint spfx framework |
https://learn.microsoft.com/en-us/sharepoint/dev/spfx/toolchain/extending-webpack-in-build-pipeline Hi @SevenOutman, Are you considering updating |
What needs to be changed particularly with react-use-set? |
Change the build |
The package exports both |
Please let me know when we can expect a compatibility fix with SharePoint spfx framework? |
What version of rsuite are you using?
5.56.0
What version of React are you using?
17.0.1
What version of TypeScript are you using (if any)?
4.5.5
What browser are you using?
Chrome
Describe the Bug
I'm using the spfx solution from sharepoint. when do the npm run serve giving me the this error.
ERROR in ./node_modules/react-use-set/dist/index.mjs 5:14-25
Can't import the named export 'useCallback' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/react-use-set/dist/index.mjs 14:23-34
Can't import the named export 'useCallback' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/react-use-set/dist/index.mjs 23:17-28
Can't import the named export 'useCallback' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/react-use-set/dist/index.mjs 34:16-27
Can't import the named export 'useCallback' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/react-use-set/dist/index.mjs 37:15-26
Can't import the named export 'useCallback' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/react-use-set/dist/index.mjs 40:9-16
Can't import the named export 'useMemo' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/react-use-set/dist/index.mjs 4:24-32
Can't import the named export 'useState' from non EcmaScript module (only default export is available)
Expected Behavior
I want to code should run without error.
To Reproduce
use the spfx solution of sharepoint and then install rsuite and try to start the server it will crash.
The text was updated successfully, but these errors were encountered: