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

module '/node_modules/react-fast-compare/index.js' does not provide an export #129

Open
Cyneric opened this issue Jul 14, 2023 · 1 comment
Labels
unverified needs reproduction / confirmation

Comments

@Cyneric
Copy link

Cyneric commented Jul 14, 2023

Uncaught SyntaxError: The requested module '/node_modules/react-fast-compare/index.js?v=4009a837' does not provide an export named 'default' (at usePopper.js?v=4009a837:4:8)

@ryan-roemer
Copy link
Member

Can you provide a minimal reproduction? Offhand it looks like your build tool is assuming that there is a default export in ESM (or module.exports.default in CJS) whereas this library just has a normal CJS module.exports export, which is still extremely widespread for libraries. Most likely you need a build tool adjustment (or maybe an upstream library is somehow importing incorrectly.

@ryan-roemer ryan-roemer added the unverified needs reproduction / confirmation label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified needs reproduction / confirmation
Projects
None yet
Development

No branches or pull requests

2 participants