-
Notifications
You must be signed in to change notification settings - Fork 204
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
Can't run after packed with pkg #228
Comments
Same issue. Building with |
@bcmRayCrazy-coder I think I realize. You need to say to your bundler that this library in using local imports and it should be My config for nx.dev {
// ...
"projectType": "application",
"targets": {
"build": {
"executor": "@nrwl/esbuild:esbuild",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/react-native-deploy",
"format": ["cjs"],
"main": "apps/react-native-deploy/src/main.ts",
"tsConfig": "apps/react-native-deploy/tsconfig.app.json",
"assets": [
"apps/react-native-deploy/src/assets"
],
// >>>>>>> this lines below for you
"external": [
"terminal-kit"
]
}
},
// ....
} |
I am experiencing the same issue packaging terminal kit. I reached the same error after setting --external:terminal-kit in esbuild. |
I just packed my code directly using pkg
But I can't launch it, 艹
Error below:
The text was updated successfully, but these errors were encountered: