-
-
Notifications
You must be signed in to change notification settings - Fork 754
build: Verify exports in package.json #2533
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
Comments
I am still having this issue after updating to v9.1.4 |
Still having the issue also |
Hi @Sandip-Z @JamersonAguiarOSF Please help by reproducing your problem on CodeSandbox or StackBlitz and then create a new issue. Thanks! |
This may be irrelevant but I found that my jest tests couldn't import the stylesheets. Using Just commenting in case someone else ends up here while searching the exact error like I did 😅 |
I'll give it a try, thank you |
We are receiving some reports (e.g. #2521), about exports not being correctly interpreted by some bundler:
https://arethetypeswrong.github.io/?p=react-day-picker%409.1.3
Problems
Import failed to resolve to type declarations or JavaScript files.
A require call resolved to an ESM JavaScript file, which is an error in Node and some bundlers. CommonJS consumers will need to use a dynamic import.
Import resolved to types through a conditional package.json export, but only after failing to resolve through an earlier condition. This behavior is a TypeScript bug. It may misrepresent the runtime behavior of this import and should not be relied upon.
Import found in a type declaration file failed to resolve. Either this indicates that runtime resolution errors will occur, or (more likely) the types misrepresent the contents of the JavaScript files.
Expand the raw details below to see the imports that failed to resolve.
The text was updated successfully, but these errors were encountered: