repairing the build: when building locally i had an error (wrong types), typing the resolver solves it
add react 18 to the peerDependencies: tested on a fresh nextjs 13 install locally, all works except an error from the server (see logs below). Client side everything seems working.
❯ npm run dev
> my-app@0.1.0 dev
> next dev
- ready started server on 0.0.0.0:3000, url: http://localhost:3000
- event compiled client and server successfully in 155 ms (20 modules)
- wait compiling...
- event compiled client and server successfully in 99 ms (20 modules)
- wait compiling /page (client and server)...
- event compiled client and server successfully in 1059 ms (444 modules)
- wait compiling...
- event compiled successfully in 125 ms (220 modules)
- error Error: Cannot find module './server'
Require stack:
- /home/fabious/Code/my-app/.next/server/app/page.js
3 small things with this PR:
yarn cs
to prettier all files