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
When I use Node.js Worker Thread to offload the work in another process, I encounter this error :
Error: Module did not self-register: '/path/to/app/node_modules/gdal-next/lib/binding/node-v72-darwin-x64/gdal.node'.
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1207:18)
at Module.load (internal/modules/cjs/loader.js:1001:32)
at Function.Module._load (internal/modules/cjs/loader.js:900:14)
at Module.require (internal/modules/cjs/loader.js:1043:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/Users/oncletom/workspace/cartobio/front/node_modules/gdal-next/lib/gdal.js:26:31)
at Module._compile (internal/modules/cjs/loader.js:1157:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1177:10)
at Module.load (internal/modules/cjs/loader.js:1001:32)
at Function.Module._load (internal/modules/cjs/loader.js:900:14)
The document specifies this:
Native add-ons can only be loaded from multiple threads if they fulfill certain conditions:
(…)
Be an N-API addon, or
Be declared as context-aware using NODE_MODULE_INIT() as described above.
There is a code example that makes a native module "context aware".
The text was updated successfully, but these errors were encountered:
@oncletom That's a great item for the roadmap - I do have on there to switch to N-API, but I will look into declaring it as a context-aware native module as an interim solution. I would also love to have this for our production cases.
When I use Node.js Worker Thread to offload the work in another process, I encounter this error :
The document specifies this:
There is a code example that makes a native module "context aware".
The text was updated successfully, but these errors were encountered: