我对React很陌生,所以我可能缺少一些基本知识。无论如何,我有这个废弃的React应用程序可以正常工作。首先,我只是尝试构建它并运行它。但是当我运行npm run-script build
并依次运行react-scripts-ts build
时,我得到以下输出:
> react-scripts-ts build
Creating an optimized production build...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
(node:22439) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
(node:22439) DeprecationWarning: Pass resolveContext instead and use createInnerContext
(node:22439) DeprecationWarning: Resolver: The callback argument was splitted into resolveContext and callback.
(node:22439) DeprecationWarning: Resolver#doResolve: The type arguments (string) is now a hook argument (Hook). Pass a reference to the hook instead.
然后将它挂在那里几个小时。我意识到这是一个相当广泛的问题,但是如果您能就如何开始找出可能出了什么问题的建议给我,那就太好了!
我尝试运行tsc
,但运行很快,但是结果不完整...