Open ktrzeciaknubisa opened 2 months ago
Ok, i renamed USB -> USB1 in @types/w3c-web-usb/index.d.ts (two occurrences in a file) and it builds now. This is just a name of a class so it should be fine to go this way.
Adding the following to tsconfig.js should stop the problem, and you won't have to mess with node_modules if you need to reinstall:
{
"compilerOptions": {
...
"types": [
"espruino",
"json5"
],
...
},
}
Explicitly listing types will omit any that aren't listed, so listing everything but "w3c-web-usb" will stop it from being used. https://www.typescriptlang.org/tsconfig/#types
I was hoping for this project, but unfortunately it does not build in VS Code atm.
Indeed USB is defined in both: