Ответ на ошибки - у меня есть собственные resole.extensions в webpack.config.js
:
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx']
},
Отсутствует значение по умолчанию .json
:
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json']
},
Теперь остались только предупреждения:
WARNING in node_modules/elastic-apm-node/lib/agent.js 152:16-59
Critical dependency: the request of a dependency is an expression
@ node_modules/elastic-apm-node/index.js
WARNING in node_modules/elastic-apm-node/lib/config.js 25:19-36
Critical dependency: the request of a dependency is an expression
@ node_modules/elastic-apm-node/lib/agent.js
WARNING in node_modules/elastic-apm-node/lib/instrumentation/index.js 169:16-30
Critical dependency: the request of a dependency is an expression
@ node_modules/elastic-apm-node/lib/agent.js
Я адресовал их разработчику: https://github.com/elastic/apm-agent-nodejs/issues/1154