bable/runtime/helper가 interopRequireDefault를 해결할 수없는 이유를 알려주십시오. 방금 바벨을 업그레이드했고, 7.0.1 바블에 명시 적으로 의존성을 옮기려고했습니다. 브라우저가 내 babelrc 파일에 제공된 "플러그인"에서 최신 babel 사용을 지원하는 것으로 감지되지 않는 한 이해합니다.webpack 업그레이드를 실행 중입니다. babel7 webpack3
ERR은 다음과 같습니다 모듈 빌드가 실패 형식 오류 : 내 바벨 로더는 확실히 파일을 호출하고 편집을 시작한다 널
의 특성 '바인딩'을 읽을 수 없습니다. 다른 설정 또는 트래버스 프로세스를 지정해야합니까?
devDependencies
"devDependencies": {
"@babel/cli": "^7.0.0-beta.34",
"@babel/plugin-syntax-dynamic-import": "7.0.0-beta.34",
"@babel/plugin-syntax-export-default-from": "7.0.0-beta.34",
"@babel/plugin-syntax-export-namespace-from": "7.0.0-beta.34",
"@babel/plugin-transform-runtime": "^7.0.0-beta.34",
"@babel/plugin-transform-strict-mode": "7.0.0-beta.34",
"@babel/preset-react": "^7.0.0-beta.34",
babelrc
"presets": [
"latest",
"react",
],
"plugins": [
"@babel/plugin-syntax-export-default-from",
"@babel/plugin-syntax-export-namespace-from",
"@babel/plugin-transform-runtime",
"@babel/plugin-syntax-object-rest-spread",
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-transform-strict-mode",
],
babel-preset-env
에 찬성 중지되었습니다 당신은 babel-preset-latest
를 사용하는
at Scope.moveBindingTo (/node_modules/babel-core/node_modules/babel-traverse/lib/scope/index.js:939:12)
at BlockScoping.updateScopeInfo (/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:364:17)
at BlockScoping.run (node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:330:12)
at PluginPass.BlockStatementSwitchStatementProgram (node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:70:24)