简体   繁体   English

找不到模块。 无法解析“ @ babel / runtime / helpers / builtin / classCallCheck”

[英]Module not found. “@babel/runtime/helpers/builtin/classCallCheck” can't be resolved

I have cloned a repo and did npm i . 我已经克隆了一个仓库,并做了npm i But as I ran it I was getting the above mentioned error on my console. 但是当我运行它时,我在控制台上遇到了上述错误。 So I tried a solution from this question and the error disappeared. 所以,我想从这个解决方案的问题和错误消失。 But now the problem is that my app isn't loading I'm getting a blank page without any errors. 但是现在的问题是我的应用程序没有加载,我得到的是空白页而没有任何错误。 I then removed the @babel/runtime dependecy. 然后,我删除了@babel/runtime依赖项。 Here is my package.json: 这是我的package.json:

{
  //... some app info
  "main": "dist/app.js",
  "scripts": {
    "clean": "rimraf dist",
    "build": "yarn run clean && webpack-dashboard -- webpack --config configs/webpack.config.js --env.build --env.sourceMap",
    "dev": "webpack-dashboard -m -- webpack-dev-server --config configs/webpack.config.js --open",
    "dev2": "webpack-dashboard -m -- webpack-dev-server --config configs/webpack.config.js --open --env.awesome",
    "lint": "tslint --project tsconfig.json",
    "tsc": "tsc -p . --noEmit",
    "tsc:watch": "tsc -p . --noEmit -w",
    "test": "jest --config jest.json",
    "test:update": "jest --config jest.json -u",
    "reinstall": "rm -rf node_modules && yarn",
    "reinstall:win": "rd /s /q node_modules && yarn",
    "precommit": "yarn run lint",
    "prepush": "yarn run lint & yarn run tsc & yarn run test",
    "deploy": "echo 'deploy not set!'"
  },
  "dependencies": {
    "classnames": "^2.2.5",
    "csstips": "^0.2.0",
    "firebase": "^4.8.0",
    "ismobilejs": "^0.4.1",
    "material-ui": "^0.19.4",
    "numeral": "^2.0.6",
    "radium": "^0.19.6",
    "react": "16.1.1",
    "react-dom": "16.1.1",
    "react-firebase-storage-connector": "^1.1.0",
    "react-redux": "5.0.6",
    "react-stripe-elements": "^1.2.1",
    "react-tooltip": "^3.4.0",
    "redux": "3.7.2",
    "redux-actions": "2.2.1",
    "redux-form": "^7.2.0",
    "redux-thunk": "^2.2.0",
    "tslib": "1.6.1",
    "typestyle": "^1.3.2"
  },
  "devDependencies": {
    "@types/radium": "^0.18.23",
    "@types/classnames": "^2.2.3",
    "@types/firebase": "^2.4.32",
    "@types/material-ui": "0.18.3",
    "@types/node": "7.0.14",
    "@types/react": "16.0.25",
    "@types/react-dom": "16.0.3",
    "@types/react-hot-loader": "^3.0.0-beta.7",
    "@types/react-redux": "5.0.13",
    "@types/redux-actions": "2.2.2",
    "@types/redux-form": "^7.0.10",
    "@types/webpack": "^2.2.15",
    "@types/webpack-dev-server": "^1.12.6",
    "@types/webpack-env": "^1.13.3",
    "awesome-typescript-loader": "^3.4.1",
    "css-loader": "^0.28.7",
    "extract-text-webpack-plugin": "^3.0.1",
    "file-loader": "^1.1.6",
    "html-webpack-plugin": "^2.28.0",
    "husky": "^0.13.3",
    "jest": "^19.0.2",
    "less": "^3.0.0-alpha.3",
    "less-loader": "^4.0.5",
    "postcss-loader": "^2.0.8",
    "react-hot-loader": "^3.0.0-beta.6",
    "redux-devtools-extension": "^2.13.2",
    "rimraf": "^2.6.1",
    "style-loader": "^0.19.1",
    "ts-jest": "^19.0.14",
    "ts-loader": "^2.0.3",
    "tslint": "^5.1.0",
    "tslint-react": "^3.0.0",
    "typescript": "2.6.1",
    "url-loader": "^0.6.2",
    "webpack": "^2.2.1",
    "webpack-dashboard": "^0.4.0",
    "webpack-dev-server": "^2.9.7"
  }
}

快速修复:npm添加@ babel / runtime

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复 - 找不到模块:无法解析 '@babel/runtime/helpers/objectWithoutPropertiesLoose' - How to fix - Module not found: Can't resolve '@babel/runtime/helpers/objectWithoutPropertiesLoose' Firebase部署错误:找不到模块'@ babel / runtime / helpers / builtin / interopRequireDefault' - Firebase deploy error: Cannot find module '@babel/runtime/helpers/builtin/interopRequireDefault' 如何解决找不到模块:无法在 Material-UI 中解析“@babel/runtime/core-js/map” - How to solve Module not found: Can't resolve '@babel/runtime/core-js/map' in Material-UI Yeoman:angular-fullstack-generator无法找到模块“ babel-runtime / helpers / interop-require-default” - Yeoman : angular-fullstack-generator cannot find module 'babel-runtime/helpers/interop-require-default' babel将其解析为UMD模块中的undefined - this is resolved to undefined in UMD module by babel React native / node 问题:成功找到 package。 但是,package 指定了一个无法解析的“主”模块字段 - React native / node issue: The package was successfully found. However, the package specifies a `main` module field that could not be resolved 未找到输入模块中的错误:错误:无法解析“babel-loader” - ERROR in Entry module not found: Error: Can't resolve 'babel-loader' `Firebase` package 已成功找到。 但是,这个 package 本身指定了一个无法解析的“主”模块字段 - `Firebase` package was successfully found. However, this package itself specifies a `main` module field that could not be resolved Babel 和 Webpack 正在抛出“无法解析 'regenerator-runtime/runtime'” - Babel and Webpack are throwing "Can't resolve 'regenerator-runtime/runtime'" 未找到 Npm 模块“”。 是否已安装? - Npm module "" not found. Is it installed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM