Closed chrisle closed 2 years ago
Well I at least tracked it down to the fact that the post-install was using webpack. My tsconfig modules was set to "commonjs" but for some reason, webpack was trying to use the ESM version in node-hue-api.
I don't know how to configure webpack to deal with TypeScript and CJS so my solution is to use the 4.x branch which is written in JavaScript instead of TypeScript.
I'm not really sure what's happening. It seems that there's something going on when Webpack tries to bundle my Electron app with the latest version of node-hue-api. Anyone have any ideas?
For context, I used the Electron React Boilerplate with Typescript.
https://github.com/electron-react-boilerplate/electron-react-boilerplate