You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not relevant, problem is within Pigment CSS/wyw-in-js
Description
During static analysis the Pigment CSS goes through all the files that are at some point imported within the app. It can be overcome by setting asyncResolve property in pigment config in next.config.js like this:
Although it's not nuqs issue per se, it can be easily fixed until Pigment CSS team implements ESM imports. I don't really know how to report this to Pigment CSS, so if someone could create issue there, it would be awesome.
⨯ unhandledRejection: Error: This package is ESM only.
See https://err.47ng.com/NUQS-101 for more details. in/home/projects/bnmiozlkmw.github/node_modules/nuqs/esm-only.cjs
The text was updated successfully, but these errors were encountered:
Thanks for the report (and even better, the solution!).
What version of Node.js are you on? There has been significant effort recently to unflag require(esm) in Node.js 20+, which hopefully will make ESM/CJS interop a thing of the past.
I'll close this as there isn't much to do on our end.
Context
What's your version of
nuqs
?2.3.2
What framework are you using?
Which version of your framework are you using?
Not relevant, problem is within Pigment CSS/wyw-in-js
Description
During static analysis the Pigment CSS goes through all the files that are at some point imported within the app. It can be overcome by setting
asyncResolve
property in pigment config in next.config.js like this:Although it's not nuqs issue per se, it can be easily fixed until Pigment CSS team implements ESM imports. I don't really know how to report this to Pigment CSS, so if someone could create issue there, it would be awesome.
Reproduction
https://stackblitz.com/edit/github-qz9evuvr?file=src%2Fapp%2Fpage.tsx
Throws with:
The text was updated successfully, but these errors were encountered: