This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Compiling fails with subpath imports #1674
Labels
Comments
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label |
pkg doesn't support esm modules #1323 |
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label |
This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of pkg are you using?
5.7.0
What version of Node.js are you using?
18.2.0
What operating system are you using?
macOS
What CPU architecture are you using?
Apple M1
What Node versions, OSs and CPU architectures are you building for?
node18
Describe the Bug
https://nodejs.org/api/packages.html#subpath-imports
In my application(esm), I have specified mappings to internal directories so that I can use them easily instead of specifying the full relative path.
package.json
app.js
Command:
npx pkg --target node18 app.js
Result:
The application is running correctly using the npm scripts.
A binary is created but when I execute that I'm getting:
Expected Behavior
Application correctly built
To Reproduce
imports
entry inpackage.json
The text was updated successfully, but these errors were encountered: