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

fix(node): Only require inspector when needed #9149

Merged
merged 1 commit into from Oct 2, 2023

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Oct 2, 2023

Closes #9146

I did try to use await import('inspector') but I get:

Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'. ts(1323)

It looks like we don't have any module target in the tsconfig.

@timfish timfish marked this pull request as ready for review October 2, 2023 12:29
@timfish timfish requested a review from mydea October 2, 2023 12:30
@AbhiPrasad AbhiPrasad merged commit 7062449 into getsentry:develop Oct 2, 2023
49 checks passed
@timfish timfish deleted the fix/anr-inspector-import branch October 2, 2023 14:46
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

Successfully merging this pull request may close these issues.

Error [ERR_INSPECTOR_NOT_AVAILABLE] in ANR module when using vercel/pkg
3 participants