-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Nx NextJS can't import js lib #15785
Comments
+1, I encountered the same error and could not import.
15.8.6 is not error |
@tiagobnobrega I don't see any apps or libs in the repo. Maybe they weren't added to git? I'm able to import workspace libs generated by https://github.com/jaysoo/next-workspace-lib/blob/main/apps/demo/pages/_app.tsx#L8 Edit: I didn't see the |
This will be fixed in 15.9, the workaround for now is to set |
Thanks so much. I'll try this out |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
When importing from a lib created using
npx nx g @nrwl/js:lib mylib-wp
the module is not be resolved by next.I'm getting the following output from nx serve web-app:
I also added a nextjs lib using npx nx g @nrwl/next:lib mylib-next, and this one works.
Expected Behavior
Libraries created using the js generator should be resolved by next.
GitHub Repo
tiagobnobrega/nx-nextjs-1590b2
Steps to Reproduce
Nx Report
Failure Logs
Additional Information
Was originally testing this in 15.9.0-beta.2 but then switched to 15.9.0-beta.6. Same issue.
No response
The text was updated successfully, but these errors were encountered: