BetterStackHQ / logtail-vercel-nextjs-example

7 stars 0 forks source link

Warning: `warn - ./node_modules/@logtail/node/dist/es6/context.js`. #2

Open BenAllenUK opened 2 years ago

BenAllenUK commented 2 years ago

I just performed a fresh install of this project and get a warning:

warn  - ./node_modules/@logtail/node/dist/es6/context.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Please could you suggest on how to resolve this? It clutters our logs!

adikus commented 2 years ago

@BenAllenUK Thanks for reporting! I'll have a look into this one.

nadilas commented 2 years ago

I just ran into this using @logtail/js, how can we help to debug?

adikus commented 2 years ago

Thanks @nadilas. Did you deploy this example directly, or are you using @logtail/js in your own project?

nadilas commented 2 years ago

I’m using it in my own project. But I’ll deploy this as well.

Edit: Just deployed the example and the same warning comes up during the build logs, however the logs are coming through fine and the lambda function is not timing out.

In my project the page did not load and was unresponsive and timed out eventually. I related the warning to the page freeze, but this seems not to be the case with the example. Removing logtail from the app solved the freeze issue though.