JavaScript to TypeScript migration not being triggered #80640
-
SummaryI'm trying to migrate a Next.js project from JavaScript to TypeScript. Tried to follow the docs:
I renamed multiple files to What I'm missing? You can view the code repo branch here: Additional informationnpm run info
> resume@0.1.0 info
> next info
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 22.6.0: Mon Apr 22 20:49:37 PDT 2024; root:xnu-8796.141.3.705.2~1/RELEASE_ARM64_T6000
Available memory (MB): 16384
Available CPU cores: 10
Binaries:
Node: 22.14.0
npm: 10.9.2
Yarn: 1.22.19
pnpm: 10.8.0
Relevant Packages:
next: 15.3.3 // Latest available version is detected (15.3.3).
eslint-config-next: 15.3.3
react: 19.1.0
react-dom: 19.1.0
typescript: 5.1.3
Next.js Config:
output: N/A
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
hey @runoncedev you might forget to include tsconfig.json in your project, |
Beta Was this translation helpful? Give feedback.
-
A bit odd, but you need to change an
For example, here I do |
Beta Was this translation helpful? Give feedback.
A bit odd, but you need to change an
app
file orpage
file:For example, here I do
app/photos/page.tsx
, and that kick starts the migration process.