Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…52562) ### What? Why? How? Similar to #47571, add `.js` extensions to generated imports to avoid problems with TypeScript `Node16` / `NodeNext` module resolution Without this change, there are confusing errors with `{ experimental: { typedRoutes: true } }` in `next.config.js`, such as: ``` Property 'refresh' does not exist on type 'AppRouterInstance'.ts(2339) ``` <img width="490" alt="Screenshot 2023-07-11 at 19 12 21" src="https://github.com/vercel/next.js/assets/1935696/399265e6-223d-4386-bc85-6136d98e436a"> cc @shuding
- Loading branch information