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 was archived by the owner on Jan 13, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
I think that who knows walker the most here is @erossignon as he has worked on it and also bootstrap in his last changes, I would like to know what he thinks about this.
In fact , we could keep the walker as-is and run ncc as a prebuild step , the result of the ncc step could be incorporated to the packaged exececutable;
IMO, this is already possible today to combine @vercel/ncc and @vercel/pkg ... why do we need do something extra ?
Hey,
I use pkg to make my project as an .exe and it loads at runtime .js in a 'plugins' folder that have been previously processed by ncc !
But the project that is processed by ncc could have native dependencies ! :)
@skaneprime Did you try to use pkg with --debug flag to see what's going on? Also did you try to add canvas node as an asset?
Forgot to mention. Yes, I added canvas.node as an asset in every way possible. Played with paths (moved it to src folder from node_modules, added the whole canvas module as an asset etc) but no result.
BUT I noticed something. I have another native module. It is FSEvents ( dunno from which module. I guess from chokodiar ) and it works well.
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
Activity
gilvex commentedon Apr 18, 2021
No response yet?
robertsLando commentedon Apr 19, 2021
Nope
jesec commentedon Apr 19, 2021
Sounds like a good idea. I am not really able to comment much before we actually did it, though.
robertsLando commentedon Apr 19, 2021
I think that who knows walker the most here is @erossignon as he has worked on it and also bootstrap in his last changes, I would like to know what he thinks about this.
erossignon commentedon Apr 19, 2021
In fact , we could keep the walker as-is and run ncc as a prebuild step , the result of the ncc step could be incorporated to the packaged exececutable;
IMO, this is already possible today to combine @vercel/ncc and @vercel/pkg ... why do we need do something extra ?
Tilican commentedon Apr 19, 2021
Hey,
I use pkg to make my project as an .exe and it loads at runtime .js in a 'plugins' folder that have been previously processed by ncc !
But the project that is processed by ncc could have native dependencies ! :)
Example :
.
├── conf.toml
├── board.exe
├── plugins
│ ├── twitch
│ │ ├── index.js
│ │ ├── iohook.node
Is this a possible use case with nft ?
robertsLando commentedon Apr 21, 2021
In that case native
.nodeaddons needs to be specified as assets in pkg configgilvex commentedon Apr 21, 2021
I used ncc and found out that canvas.node didn't dropped in build folder as a dependency
Can it be that it is trouble with canvas, not the pkg or ncc it self? I can't quite catch but all issues which happens follow ups to canvas module
robertsLando commentedon Apr 21, 2021
@skaneprime Did you try to use pkg with
--debugflag to see what's going on? Also did you try to add canvas node as an asset?gilvex commentedon Apr 21, 2021
@robertsLando there was a lot of logs. Is there a way to store debug into file?
Nonetheless, here the part when it comes to native modules
gilvex commentedon Apr 21, 2021
Forgot to mention. Yes, I added canvas.node as an asset in every way possible. Played with paths (moved it to src folder from node_modules, added the whole canvas module as an asset etc) but no result.
BUT I noticed something. I have another native module. It is FSEvents ( dunno from which module. I guess from chokodiar ) and it works well.
robertsLando commentedon Apr 22, 2021
Based on your logs seems that this canvas.node isn't installed correctly, that could be the reason
erossignon commentedon Apr 23, 2021
see #1135 and PR #1143 that fixes .node files that require external dlls on windows
Tilican commentedon Apr 25, 2021
I can't know in advance what .node dependencies will be, because users can add modules themselves ...
It's like plugin system, user can add or remove plugin at runtime
github-actions commentedon Aug 6, 2021
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
github-actions commentedon Aug 11, 2021
This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.