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
The second and most important issue IMO, occurs when you publish the library to the npm registry and tries to use it inside a next app, no matter if is in a new workspace or a next app created with create-next-app command, It just doesn't work.
This issue is to track the second one, but in both cases the issue is the same, the module can't be resolved
If you install the lib from npm registry and open the node_modules folder, go to the package folder and removes that line from the package.json, and runs your app, then the app works without issues
For testing purposes I published this sample @gperdomor/sample-lib package from the above GitHub repo
The text was updated successfully, but these errors were encountered:
I'm also having the same kind of issue (not with Next, just a regular TS librairie)
Once it's published and used in another project, the development entrypoint refers to TS files, which can be in conflict with current project ts configuration
Uh oh!
There was an error while loading. Please reload this page.
Current Behavior
The are two problems with libs...
create-next-app
command, It just doesn't work.This issue is to track the second one, but in both cases the issue is the same, the module can't be resolved
Expected Behavior
Packages just should works as expected
GitHub Repo
https://github.com/gperdomor/nx-next-issue
Steps to Reproduce
npc create-next-app
commandNx Report
Failure Logs
Package Manager Version
pnpm 10.11.0
Operating System
Additional Information
The issue described in point 2, seems to be related with
development
property in package.jsonexports
fieldsIf you install the lib from npm registry and open the node_modules folder, go to the package folder and removes that line from the package.json, and runs your app, then the app works without issues
For testing purposes I published this sample @gperdomor/sample-lib package from the above GitHub repo
The text was updated successfully, but these errors were encountered: