-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
No matching export for import "getSyntheticLinkProps" #6750
Comments
I think you possibly have multiple copies of our packages installed. Could you check that is the case? it usually manifests as a node_modules inside of a package already in your node_modules. There's also this script https://gist.github.com/jluyau/9024db3527788030312332075745469b which may help you identify duplicates. Another option is that you need to update some of the other packages, such as react-aria/menu or react-aria/gridlist |
I have the same error |
I'm guessing we are all using Next UI at least with Next.js the import trace seems a bit more helpful. Given Next UI is the common denominator I would hazard it's probably a problem with that.
|
I was still in 2.4.2 and got the same error without updating. Was my CI pipeline broken all the time and I didn't know it or this isn't my fault? :D |
I was also using version 2.4.2 and did not update it, I noticed this error when I deployed an update to my app on aws amplify. Then I decided to update all versions of the packages to the latest and the error began to appear no matter what version I installed. I don't have duplicate packages, I'm sure of that! |
Anyone else using turbo in this setup? Is this possibly related to turbo? |
No Turbo for me |
I got this same error message as well when deploying on Vercel 😰 |
this looks weird since we use the fixed version for |
I am also facing this issue (not using next-ui), it seems that |
Boiled it down to this commit. Apparently In my specific use case, I was using Either way if it's broken on your local machines it helps to do |
Something like that is a breaking change, especially when combined with the usage of ^ when referring to that dependency, it means that freshly grabbing (or deduping) packages like |
"After updating to Next.js 3.25, I am encountering an issue when creating a build. Please suggest how to fix it." Errors:-
Creating an optimized production build ... ./node_modules/@react-aria/table/dist/useTableRow.mjs Import trace for requested module: |
Same error getting from this morning Failed to compile Next.js (14.2.5) @react-aria/utils twice installed into my project. it is a peer dependence of @nextui-org/react, @nextui-org/system, @nextui-org/theme @react-aria/utils (2) - 3.24.1, 3.25.0 Any solution for this. We are stuck of production |
Supplement a bit. In our NextUI table component, we are using the fixed version for RA table (v3.14.1) "dependencies": {
"@react-aria/table": "3.14.1",
// some other dependencies ...
} In "node_modules/@react-aria/table": {
"version": "3.14.1",
"dependencies": {
"@react-aria/grid": "^3.9.1",
// some other dependencies ...
},
} Due to the caret ( "node_modules/@react-aria/grid": {
"version": "3.10.0",
"dependencies": {
"@react-aria/utils": "^3.25.0",
// some other dependencies ...
},
} and the breaking change was introduced in |
That means all previous versions of React-aria are broken due to the poor version management of the React-aria monorepo ? |
@wingkwong should we expect a fix from react-aria or NextUI? |
As a temporary fix, you can specify the older version in a package.json
|
This will only work if you also lock other |
Issue: Build Error Due to Import Error with @react-aria/utils When building the project, I'm encountering the following errors: Image Optimization Warning: Build Failure Due to Import Error: bash build: ../../node_modules/@react-aria/table/dist/useTableRow.mjs : Import trace for requested module: Steps to Reproduce: Install dependencies using Yarn. The build should complete successfully without import errors related to @react-aria/utils. Actual Behavior: The build fails with an import error for getSyntheticLinkProps, which is not exported from @react-aria/utils. Additional Context: Packages Involved: It appears that getSyntheticLinkProps might have been removed or renamed in the latest version of @react-aria/utils. Updating to a compatible version or checking the latest documentation for alternative imports might resolve the issue. |
same issue here |
Any hope :D? |
Hmm, interesting issue. I think we were under the impression that since this is an internal/private package, breaking changes were ok, but clearly that's not the case due to pinning of upstream dependencies. Sorry about that. I guess we could potentially bring back the old version of the function and leave it there alongside the new one. In this case the function is quite small. We will check to see if there are any more like this as well. |
same here |
That's not correct. That PR was experimental and somehow it got merged by mistake. We've rollbacked it. We'll wait for RA team's updates and at the same time we're trying to upgrade to RA latest and resolve the build issues. |
I tried it earlier once I saw this PR. Forgot I have added resolutions as a temp solution. My bad. |
still happening |
hold your horses, I'm still working on releasing the fix to npm 😅 |
Waiting patiently. |
You can also specify versions below
|
This worked on my end. Thanks for the heads up @yuliahey |
…ticLinkProps renamed causing an dependency conflict adobe/react-spectrum#6750
This should be fixed in |
@devongovett Thanks a lot! |
Build Error Due to Import Error with @react-aria/utils - Solution Found Description: When building my project, I encountered errors related to imports from @react-aria/utils. Specifically, the build failed due to an import error for getSyntheticLinkProps. Errors Encountered: Failed to compile. ../../node_modules/@react-aria/table/dist/useTableRow.mjs Import trace for requested module: I resolved the issue by ensuring the following package versions: "@nextui-org/react": "2.2.10" Steps Taken: 1: use nextUI version "@nextui-org/react": "2.2.10", Ran the build command (yarn build) successfully. This solution addresses the import error by using compatible versions of the involved packages. If you encounter similar issues, aligning your package versions as shown above might help resolve them. |
Provide a general summary of the issue here
After updating the @nextui-org/react package to 2.4.6, the @react-aria/utils dependency was updated to 3.25.0. There was a problem importing into @react-aria/utils. This is why the project is not deployed to AWS Amplify and there is no way to continue developing the project!
🤔 Expected Behavior?
Everything should work as it did on the previous version @react-aria/utils 3.24.1
😯 Current Behavior
The project does not start and does not build
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
Version
3.25.0 @react-aria/utils
What browsers are you seeing the problem on?
Chrome, Other
If other, please specify.
No response
What operating system are you using?
MacOS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: