При сборке проекта получаю ошибку:
ERROR in ./app.js
Module build failed (from ../node_modules/babel-loader/lib/index.js):
TypeError: /var/www/html/bx-site/local/client/app/app.js: Cannot read properties of null (reading 'bindings')
at Scope.moveBindingTo (/var/www/html/bx-site/local/client/node_modules/@babel/traverse/lib/scope/index.js:828:13)
at BlockScoping.updateScopeInfo (/var/www/html/bx-site/local/client/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:364:17)
at BlockScoping.run (/var/www/html/bx-site/local/client/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:330:12)
at PluginPass.BlockStatementSwitchStatementProgram (/var/www/html/bx-site/local/client/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:70:24)
at newFn (/var/www/html/bx-site/local/client/node_modules/@babel/traverse/lib/visitors.js:172:14)
at NodePath._call (/var/www/html/bx-site/local/client/node_modules/@babel/traverse/lib/path/context.js:49:20)
at NodePath.call (/var/www/html/bx-site/local/client/node_modules/@babel/traverse/lib/path/context.js:39:18)
at NodePath.visit (/var/www/html/bx-site/local/client/node_modules/@babel/traverse/lib/path/context.js:88:31)
at TraversalContext.visitQueue (/var/www/html/bx-site/local/client/node_modules/@babel/traverse/lib/context.js:90:16)
at TraversalContext.visitSingle (/var/www/html/bx-site/local/client/node_modules/@babel/traverse/lib/context.js:66:19)
at TraversalContext.visit (/var/www/html/bx-site/local/client/node_modules/@babel/traverse/lib/context.js:113:19)
at traverseNode (/var/www/html/bx-site/local/client/node_modules/@babel/traverse/lib/traverse-node.js:22:17)
at traverse (/var/www/html/bx-site/local/client/node_modules/@babel/traverse/lib/index.js:53:34)
at transformFile (/var/www/html/bx-site/local/client/node_modules/@babel/core/lib/transformation/index.js:80:31)
at transformFile.next (<anonymous>)
at run (/var/www/html/bx-site/local/client/node_modules/@babel/core/lib/transformation/index.js:25:12)
at run.next (<anonymous>)
at transform (/var/www/html/bx-site/local/client/node_modules/@babel/core/lib/transform.js:22:33)
at transform.next (<anonymous>)
at step (/var/www/html/bx-site/local/client/node_modules/gensync/index.js:261:32)
at /var/www/html/bx-site/local/client/node_modules/gensync/index.js:273:13
at async.call.result.err.err (/var/www/html/bx-site/local/client/node_modules/gensync/index.js:223:11)
Все пакеты связанные с babel обновил до последних версий:
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^9.2.1",
"babel-preset-env": "^1.7.0",
....
}
Подскажите в чём может быть проблема?