hue-hacking-npm icon indicating copy to clipboard operation
hue-hacking-npm copied to clipboard

Referenced main-file in package.json not distributed in package

Open 4ch1m opened this issue 4 years ago • 0 comments

Hi there, I'm using "hue-hacking-npm" as a dependency in my project. Everything worked fine in the past. However, with the latest updates of some of my other frameworks (Electron, etc.) I now get the following error on startup:

Cannot find module ... node_modules/hue-hacking-node/dist/index.js'. Please verify that the package.json has a valid "main" entry.

I guess that's because "hue-hacking-npm" doesn't distribute the dist-folder itself, but the main-file being referenced in package.json lies in that folder.

...
  "description": "Utility to control Philips Hue light bulbs",
  "main": "dist/index.js",
...

Is there a chance that could be fixed with an upcoming release? :smiley: Thanks a lot!

4ch1m avatar Jul 10 '21 09:07 4ch1m