Open rosek86 opened 10 months ago
Same problem.
@reconbot Can you fix this?
I was not able to build the module after sync and npm install, that's why I was not able to create a pull request. I hat issues with rollup
However, if you use bindings-interface in a ESM based project (packge.jscon -> "type": "module" You will get errors like the above.
"Solution": I copied the dist-ts/index.s.ts file to dist/index.d.ts file and changed the export section to
"exports": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts",
"default": "./dist/index-esm.mjs"
},
The same needs to be done for bindings-mock.
Hello,
I get the following error when I try to use serialport in esm, is it something that can be adjusted in
@serialport/bindings-interface
.NOTE: when I copy
index.d.ts
file toindex-esm.d.mts
the error disappears.