sentencex icon indicating copy to clipboard operation
sentencex copied to clipboard

The js binding isnt working on my mac.

Open LordKayBanks opened this issue 1 month ago • 2 comments

Mac intel. I keep getting this error everytime i try to use the code. I have tried deleting my node modules and re-installing but it didnt fix it. package version: 1.0.9

Error: dlopen(.../node_modules/sentencex/index.node, 0x0001): tried: '.../node_modules/sentencex/index.node' (not a mach-o file)
    at Module._extensions..node (node:internal/modules/cjs/loader:1717:18)
    at Module.load (node:internal/modules/cjs/loader:1317:32)
    at Module._load (node:internal/modules/cjs/loader:1127:12)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Module.require (node:internal/modules/cjs/loader:1339:12)
    at require (node:internal/modules/helpers:135:16)
    at file:///.../node_modules/sentencex/index.mjs:7:15
    at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:482:26) {
  code: 'ERR_DLOPEN_FAILED'
}

LordKayBanks avatar Nov 14 '25 14:11 LordKayBanks

Thanks for reporting. I guess I need to prepare platform specific builds for that index.node. The one I published in npm is based on Linux build. Need to setup CI for this.

santhoshtr avatar Nov 15 '25 04:11 santhoshtr

Platform specific builds were done in pull request #26 . Not published in npm yet

santhoshtr avatar Nov 19 '25 07:11 santhoshtr