How to use @lit-labs/nextjs with nextjs app created in nrwl nx mono-repo?. #29105
manandkumaar
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Nx Team,
is there any document on how to configure NX nextjs app with @lit-labs/nextjs plugin?
This plugin is recommended by Lit to deep server render Lit react wrappers in a nextjs app.
As per nx nextjs guide,
withLitSSR
export of@lit-labs/nextjs
plugin to be included inplugins
array innext.config.js
as below -But the above config throws this error -
Versions -
"lit": "^3.2.0",
"@lit/react": "^1.0.5",
"@lit-labs/nextjs": "^0.2.0",
"nx": "20.0.3",
Any help on fixing the error is greatly appreciated. Thanks.
CC: @augustjk @justinfagnani
Beta Was this translation helpful? Give feedback.
All reactions