我已经与团队中几乎所有其他开发人员一起面对这个问题。其中一些人已经在Linux和Windows计算机上奇迹般地解决了这个问题,但是100%的版本在节点版本为8.x和12.x的Mac上均无法使用
我有一个现有的基于React的应用程序,并且某些组件尝试从babel运行时导入一些组件,但是它总是返回错误未找到模块:
您可以在下面的屏幕快照中看到它存在于路径中
我的package.json看起来像这样
{
"name": "ant",
"version": "1.1.6",
"private": true,
"homepage": "",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@sentisis/react-tags-input": "^1.0.4",
"antd": "^3.8.2",
"axios": "^0.18.0",
"chosen-js": "^1.8.7",
"classnames": "^2.2.6",
"echarts": "^4.1.0",
"echarts-for-react": "^2.0.14",
"google-maps-react": "^2.0.2",
"immutability-helper": "^2.7.1",
"inputmask": "^4.0.2",
"jquery": "^3.3.1",
"lightbox2": "^2.10.0",
"lodash": "^4.17.11",
"moment": "^2.22.2",
"npm": "^6.4.1",
"query-string": "^6.2.0",
"rc-queue-anim": "^1.6.5",
"react": "^16.5.2",
"react-animated-css": "^1.0.4",
"react-bootstrap-sweetalert": "^4.4.1",
"react-calendar": "^2.17.3",
"react-chosen": "^0.3.8",
"react-dnd": "^7.4.5",
"react-dnd-html5-backend": "^7.4.4",
"react-dom": "^16.5.2",
"react-facebook-login": "^4.1.1",
"react-ga": "^2.5.6",
"react-geolocated": "^2.4.0",
"react-google-autocomplete": "^1.0.18",
"react-google-login": "^4.0.1",
"react-js-pagination": "^3.0.2",
"react-loadable": "^5.5.0",
"react-owl-carousel2": "^0.3.0",
"react-paginating": "^1.3.0-hook.1",
"react-redux": "^5.0.7",
"react-router-dom": "^4.3.1",
"react-router-redux": "5.0.0-alpha.9",
"react-scripts": "2.0.0-next.3e165448",
"react-scroll-up-button": "^1.6.4",
"react-select": "^2.4.3",
"react-slick": "^0.24.0",
"react-tag-autocomplete": "^5.11.1",
"react-tag-input": "^6.4.0",
"react-tagsinput": "^3.19.0",
"reactstrap": "^6.4.0",
"redux": "^4.0.0",
"redux-thunk": "^2.3.0",
"reqwest": "^2.0.5",
"sendbird": "^3.0.81",
"slick-carousel": "^1.8.1",
"wowjs": "^1.1.3"
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test --env=jsdom",
"eject": "react-scripts eject",
"prettier": "prettier --write ./src/**/**/**/*"
},
"browserslist": {
"development": [
"last 2 chrome versions",
"last 2 firefox versions",
"last 2 edge versions"
],
"production": [
">1%",
"last 4 versions",
"Firefox ESR",
"not ie < 11"
]
},
"devDependencies": {
"babel-plugin-import": "^1.8.0",
"bootstrap": "^4.1.3",
"cdn-loader": "^0.1.8-0",
"history": "^4.7.2",
"html-webpack-cdn-plugin": "^0.2.0",
"html-webpack-plugin": "^3.2.0",
"loaders.css": "^0.1.2",
"node-sass": "^4.9.3",
"prettier": "^1.14.2",
"prop-types": "^15.6.2",
"react-app-rewire-less": "^2.1.2",
"react-app-rewired": "^1.5.2",
"redux-immutable-state-invariant": "^2.1.0"
}
}
任何帮助或线索将不胜感激。