Currently in the process of developing a web application with Next.js and TypeScript, I have encountered an issue related to my custom server.ts
file. When running the development command ts-node server.ts
, I am facing an unexpected behavior where my tsconfig.json file is being modified.
Various attempts to resolve this problem, such as removing the node_modules
directory and performing a fresh installation using the npm install
command, have been unsuccessful. Even reinstalling Node.js entirely did not fix the issue.
Below is a snippet of my tsconfig.json
configuration:
{
"compileOnSave": false,
...
(content here remains the same)
...
}
The error message obtained after executing ts-node server.ts
states the following required changes to the tsconfig.json file:
The following changes are being made to your tsconfig.json file:
- compilerOptions.strict to be suggested value: true
- compilerOptions.forceConsistentCasingInFileNames to be suggested value: true
- etc.