Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BenAllenUK opened this issue May 17, 2022 · 4 comments
Open

Comments

@BenAllenUK
Copy link

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
Copy link

adikus commented May 19, 2022

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

@nadilas
Copy link

nadilas commented May 26, 2022

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

@adikus
Copy link

adikus commented May 26, 2022

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

@nadilas
Copy link

nadilas commented May 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants