Next.js: [Next 9.0.0] Missing @zeit/next-typescript as dep

Created on 8 Jul 2019  路  2Comments  路  Source: vercel/next.js

Bug report

Missing dep on @zeit/next-typescript.

Describe the bug

I've upgraded to 9.0.0, removed the dependency of my package on @zeit/next-typescript then re-install the entire node_modules.

When running npx next dev it throws:

[ error ] ./node_modules/next/dist/client/next-dev.js
Error: Cannot find module '@zeit/next-typescript/babel' from '/Users/***/Projects/node/***/renderer'
    at Array.map (<anonymous>)

To Reproduce

  1. Install Next 9.0.0
  2. Make your pages with .tsx extension
  3. Run npx next dev

Expected behavior

If Next 9.0.0 supports Typescript natively and uses @zeit/next-typescript, it should be dependant on @zeit/next-typescript

System information

  • OS: macOS
  • Version of Next.js: 9.0.0

Most helpful comment

Hi, I'm not able to reproduce this. It sounds like you might need to update/remove your custom .babelrc as @zeit/next-typescript is no longer needed anywhere in Next.js >= v9

All 2 comments

Next.js does not use @zeit/next-typescript and it's not a dependency. The module is deprecated.

Hi, I'm not able to reproduce this. It sounds like you might need to update/remove your custom .babelrc as @zeit/next-typescript is no longer needed anywhere in Next.js >= v9

Was this page helpful?
0 / 5 - 0 ratings