elastic / elastic/apm-agent-nodejs

"Critical dependency: the request of a dependency is an expression" with webpack, Babel & TypeScript

Open
#1,154 13 comments 0 reactions 0 assignees View on GitHub
agent-nodejs awaiting reply
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

**Describe the bug**
I am using a TypeScript setup with webpack and babel and get the following warnings when including `elastic-apm-node`.

```
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
```

**To Reproduce**
Steps to reproduce the behavior:
1. Clone https://github.com/arichter83/meteor-webpack/tree/with-elastic-apm-node
2. Run `npm install`
3. Run `npm start`

**How are you starting the agent? (please tick one of the boxes)**
- [x] Requiring `elastic-apm-node/start` from within the source code

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.