elastic / elastic/ecs-logging-nodejs

Can't resolve 'elastic-apm-node'

Open
#189 8 comments 0 reactions 1 assignee Claimed by @trentm View on GitHub
community triage
Dominant language
JavaScript
Stars
69
Forks
45
PR merge metrics
No merged PRs in 30d

Description

⚠ ./node_modules/.pnpm/@elastic+ecs-winston-format@1.5.3/node_modules/@elastic/ecs-winston-format/index.js
Module not found: Can't resolve 'elastic-apm-node' in '.pnpm/@elastic+ecs-winston-format@1.5.3/node_modules/@elastic/ecs-winston-format'

Should I need to install this? I am not using elastic-apm-node anywhere.

This happens when I trying to integrate with Nextjs. Runs fine otherwise.

```ts
export const logger = winston.createLogger({
format: ecsFormat(),
transports: [
new winston.transports.Console(),
new winston.transports.File({ filename: `${outLogPath}/out-json.log` }),
],
});
```

This seems to be silently ignored in js file but I still get this error logged in NextJS logs.

Any ideas on how to suppress this error?

image

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.