javascript - 如何启动使用 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.```
解决方案
推荐阅读
- web - Web 共享 API 回退
- javascript - 我试图仅在实时网络摄像头上检测圆圈,并在其上绘制圆圈
- php - 是否可以将电子邮件从 PHP 应用程序发送到 google 组电子邮件/分发列表?
- python - Seaborn Catplot 仅更改其中 1 行的 X 和 Y 标签
- c# - MsTeam herocard ActionTypes.ImBack 表现不同
- c++ - 什么是 C++ 方法来做到这一点而不是使用函数指针?
- javascript - 如何区分单击和双击日历约会?
- excel - 如何在不移动数据的情况下将数据粘贴到表格中?
- javascript - 如何导入 NodeJS winston-daily-rotate-file 依赖项?
- python - 熊猫数据框作为嵌套的 json