-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
panic: runtime error: index out of range [7] with length 5 when building esm #3400
Comments
I suspect you'll need a full repro, which I can probably pull together and put into Github at some point this week 👍 Figured I'd raise this first though in case there's something obvious I'm doing wrong with the config... |
I've commited a reproduction here: https://github.com/wilhen01/esbuild-bug-repro I think I may have figured out what's going on - I set If I change the
I'm setting |
It's not related to the panic but you only have to use |
Thanks @hyrious! Setting the build command to
|
Thanks for providing this test case. This is a crash in esbuild's error reporting for the case where something uses
The crash will be fixed in the next release of esbuild. In the meantime, you should fix your code to not call |
Thanks @evanw ! Will give the next version a try and see about resolving the issue with |
I'm trying to build a typescript cli tool using esbuild 0.19.3 with
esm
format using the following options:type
is set asmodule
in package.json.tsconfig options as follows:
Receiving the following error from
esbuild
The text was updated successfully, but these errors were encountered: