This repo has been created to test SSR issues with React-wrapped lit components in Next.js apps. Please see https://github.com/keisha-rw/next-learn for the corresponding Next.js test app.
- Pull down this code locally
- Run
npm i
- Run
npm run prepare-local-assets
- this script runs build, runs npm pack on all the built packages, and prepares them for consumption intgz-packages
- Pull down https://github.com/keisha-rw/next-learn locally
- cd to
/basics/demo
in the repo so you're at the base level of the demo app - Run
npm i
- Run
npm run install-local-pds
- this script installs the local packages that were zipped up in step 3 - Run
npm run dev
and pull up http://localhost:3000 - When the page loads, you should see an issue with Lit's hydration script