美文网首页
Class constructor FileManager ca

Class constructor FileManager ca

作者: 程序员李钟意 | 来源:发表于2019-08-20 19:50 被阅读0次

启动项目显示如下错误

Failed to compile.

./src/theme/recss.css
Module build failed:

Class constructor FileManager cannot be invoked without 'new'
      in undefined (line undefined, column undefined)

解决方法:

  • 把 package.json 的 devDependencies 依赖 less 版本锁定在 3.9.0 即可。 issues
  • 删除 node_modules,重新 npm install
    },
    "eslintConfig": {
        "extends": "react-app"
    },
    "devDependencies": {
        "axios": "^0.18.0",
        "babel-plugin-transform-decorators-legacy": "^1.3.5",
        "babel-preset-react-native-stage-0": "^1.0.1",
        "babel-preset-stage-2": "^6.24.1",
        "classnames": "^2.2.6",
        ---"less": "^3.8.1",
        +++"less": "3.9.0",
        "less-loader": "^4.1.0"
    }
}

相关文章

网友评论

      本文标题:Class constructor FileManager ca

      本文链接:https://www.haomeiwen.com/subject/rhsmsctx.html