You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
TLDR: I found Enclose, tried it and got an error. Found an issue report over there suggesting to use this instead. But I get the exact same message with Pkg.
Note: For the record, I do actually want to replace image-size with something that lets me do true image comparisons (currently I'm using the MD5 file hash, which is getting messy).
My console output is as follows:
D:\dev-sandbox\spotlight-extractor>pkg -t node6-win index.js
> Fetching base Node.js binaries to: ~/.pkg-cache
fetched-v6.10.0-win-x86 [====================] 100%
> Warning Cannot resolve ''./types/' + type'
D:\dev-sandbox\spotlight-extractor\node_modules\image-size\lib\index.js
Use a string literal as argument for 'require', or leave it
as is and specify the resolved file name in 'scripts' option.
> Warning Cannot resolve ''./types/' + type'
D:\dev-sandbox\spotlight-extractor\node_modules\image-size\lib\detector.js
Use a string literal as argument for 'require', or leave it
as is and specify the resolved file name in 'scripts' option.
I have a few other projects and ideas that I want to package for distribution, but they're not yet ready for that just yet.. So for the sake of understanding this issue I'll ask my question using this project as reference for now.
Obviously modifying the library that causes the problem is one option, but is that the best way to handle this situation? Is there anything else that can be done to work around this?
The text was updated successfully, but these errors were encountered:
Ah, I didn't quite understand what that what intended for from the project's readme file, sorry about that.. I also needed to add the bin entry to package.json and change the source file in my pkg command.
I still get the same warning now, so at first it doesn't look any different, but the generated executable now runs properly. 👍 Thanks.
TLDR: I found Enclose, tried it and got an error. Found an issue report over there suggesting to use this instead. But I get the exact same message with Pkg.
My console output is as follows:
I have a few other projects and ideas that I want to package for distribution, but they're not yet ready for that just yet.. So for the sake of understanding this issue I'll ask my question using this project as reference for now.
Obviously modifying the library that causes the problem is one option, but is that the best way to handle this situation? Is there anything else that can be done to work around this?
The text was updated successfully, but these errors were encountered: