GoogleChromeLabs / web-gphoto2

Running gPhoto2 to control DSLR cameras over USB on the Web
https://web-gphoto2.rreverser.com/
GNU Lesser General Public License v2.1
101 stars 16 forks source link

Build Issue with Angular v13 - Node JS v14.18.2 - TS v4.6.4 - NPM Error #14

Open sshanmu91 opened 7 months ago

sshanmu91 commented 7 months ago

camera-controller.ts

image

On "ng-build", Getting the Following Error in the File where Camera has been imported from "web-gphoto2"

image

node_modules/web-gphoto2/package.json

image

Node JS - v14.18.2

package.json

"@types/emscripten": "^1.39.10" "typescript": "~4.6.4" "web-gphoto2": "^0.4.1"

tsconfig.json

image

Please do help on how to resolve this issue!

sshanmu91 commented 7 months ago

@icheered @RReverser

Hope you 're doing good! Could you please help on Resolving this NPM Build Error!

sshanmu91 commented 7 months ago

@icheered @RReverser

In package.json, "exports" Field has to be corrected up in the following manner.

"exports": { ".": { "types": "./build/camera.d.ts", "node": "./build/camera.js", "require": "./build/camera.js", "import": "./build/camera.js", "default": "./build/camera.js" } }