-
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
error: Could not resolve "simple-exiftool" #423
Comments
The NodeJS module loader seems to work as I assumed. From the spec:
Note step f. This will load |
Thanks for reporting this. It does indeed look like esbuild is not following the spec correctly. This will be fixed in the next release. |
Thanks, I can confirm the fix! Tested with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(First of all, awesome tool, great speed!)
Problem
I tried esbuild for our
node
applications, and it generally works. However, there seems to be an issue with simple-exiftool - as soon as it is required, it fails with the error:Steps to reproduce
Minimalist project to reproduce:
Will throw the above error.
Version
Same issue when using the Javascript API.
Notes
One hunch: the package.json of simple-exiftool has its
main
set to./lib/exif
. But it does not have that file, it only has a lib/index.js and also a trivialindex.js
in the root.It works fine in our code, so maybe Nodejs' module loader is smart and falls back to
index.js
if themain
frompackage.json
can't be found. Possiblyesbuild
should do the same?The text was updated successfully, but these errors were encountered: