繁体   English   中英

为什么打字稿编译器会在服务器启动时更改我的 tsconfig.json 文件?

[英]Why is typescript compiler changing my tsconfig.json file on server start up?

我正在尝试将我的 react 应用程序移动到 react-typescript 应用程序。 首先,这看起来很棘手,令人失望

我遇到的问题是我的控制台中出现打字稿错误。 我正在尝试通过更改我的 tsconfig.json 文件来修复它们

但是每当我这样做并重新启动服务器时,我都会在控制台中收到一条消息: the following changes are being made to your tsconfig.json file ,然后它列出了我刚刚添加的内容的基本上"undos"的更改或改变。 为什么要这样做?

这是一个 create-react-app 项目,我按照这个迁移到 typescript: https://facebook.github.io/create-react-app/docs/adding-typescript : https://facebook.github.io/create-react-app/docs/adding-typescript

我正在尝试将我的React应用程序移动到react-typescript应用程序。 首先,这似乎很棘手,令人失望

我遇到的问题是我的控制台出现打字稿错误。 我正在尝试通过更改tsconfig.json文件来修复它们

但是无论何时执行并重新启动服务器,我都会在控制台中收到一条消息,说: the following changes are being made to your tsconfig.json file ,然后列出更改,这些更改基本上是我刚刚添加的内容的"undos"或更改。 为什么会这样做呢?

这是一个create-react-app项目,我遵循此项目迁移到打字稿: https://facebook.github.io/create-react-app/docs/adding-typescript : https://facebook.github.io/create-react-app/docs/adding-typescript

我正在尝试将我的React应用程序移动到react-typescript应用程序。 首先,这似乎很棘手,令人失望

我遇到的问题是我的控制台出现打字稿错误。 我正在尝试通过更改tsconfig.json文件来修复它们

但是无论何时执行并重新启动服务器,我都会在控制台中收到一条消息,说: the following changes are being made to your tsconfig.json file ,然后列出更改,这些更改基本上是我刚刚添加的内容的"undos"或更改。 为什么会这样做呢?

这是一个create-react-app项目,我遵循此项目迁移到打字稿: https://facebook.github.io/create-react-app/docs/adding-typescript : https://facebook.github.io/create-react-app/docs/adding-typescript

我正在尝试将我的React应用程序移动到react-typescript应用程序。 首先,这似乎很棘手,令人失望

我遇到的问题是我的控制台出现打字稿错误。 我正在尝试通过更改tsconfig.json文件来修复它们

但是无论何时执行并重新启动服务器,我都会在控制台中收到一条消息,说: the following changes are being made to your tsconfig.json file ,然后列出更改,这些更改基本上是我刚刚添加的内容的"undos"或更改。 为什么会这样做呢?

这是一个create-react-app项目,我遵循此项目迁移到打字稿: https://facebook.github.io/create-react-app/docs/adding-typescript : https://facebook.github.io/create-react-app/docs/adding-typescript

从 create-react-app 中弹出对我有用。

命令: npm run eject

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM