首页 > 解决方案 > 如何启动使用 craco 模块的 React 应用程序

问题描述

我从 github 分叉了一个 repo,我一直在尝试启动应用程序,但我一直遇到错误。我已经克服了大多数问题(通过安装软件包和更正拼写错误),但我被这个错误所困扰。


> dashboard@0.1.0 start /root/Projects/crazed-master/crazed-master
> craco start

(node:272) UnhandledPromiseRejectionWarning: TypeError: Object.fromEntries is not a function
    at Object.<anonymous> (/root/Projects/crazed-master/crazed-master/node_modules/tailwindcss/lib/jit/corePlugins.js:242:13)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/root/Projects/crazed-master/crazed-master/node_modules/tailwindcss/lib/jit/lib/setupContextUtils.js:36:43)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
(node:272) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:272) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```


标签: javascriptnode.jsreactjsnpmcraco

解决方案


推荐阅读