【问题标题】:I've been trying to run 'npm run build' on my react tailwind app and its been showing me the following errors我一直在尝试在我的反应顺风应用程序上运行“npm run build”,它一直在向我显示以下错误
【发布时间】:2021-12-06 07:58:20
【问题描述】:

这是在终端中抛出的

> craco build

C:\Users\kaund\OneDrive\Documents\codinglife\project-dreams\react-projects\order-form\node_modules\@craco\craco\lib\loaders.js:34
    rules.some((rule, index) => {
          ^

TypeError: Cannot read property 'some' of undefined
    at getLoaderRecursively (C:\Users\kaund\OneDrive\Documents\codinglife\project-dreams\react-projects\order-form\node_modules\@craco\craco\lib\loaders.js:34:11)

【问题讨论】:

标签: reactjs npm tailwind-css web-development-server


【解决方案1】:

当我将 craco 更新到最新版本时它起作用了

【讨论】:

    猜你喜欢
    • 2021-03-03
    • 2019-04-27
    • 2018-11-14
    • 2017-07-18
    • 2020-01-09
    • 1970-01-01
    • 1970-01-01
    • 2022-01-11
    • 2021-10-10
    相关资源
    最近更新 更多