Closed justjake closed 4 months ago
This looks like a regression due to SE-0411. The fix is to use #NodeModule { return ... }
instead of #NodeModule(exports: ...)
. Will update the readme accordingly, thanks for flagging this.
Found a better fix that involved updating the macro instead. @justjake could you please try the README example again using the latest commit (specify branch: "main"
for the SwiftPM dependency on node-swift) and check if it works?
Thanks for the quick response - I'm not sure what you mean by branch: "main"
- I just checked out this repo and ran npm install
in the example directory to produce that error
ah makes sense, yes you should be able to do that successfully now
It appears the init of NodeFunction isn't valid because it's async?