web-gphoto2 icon indicating copy to clipboard operation
web-gphoto2 copied to clipboard

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

Open sshanmu91 opened this issue 1 year ago • 2 comments

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 avatar Jan 17 '24 18:01 sshanmu91

@icheered @RReverser

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

sshanmu91 avatar Jan 18 '24 10:01 sshanmu91

@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" } }

sshanmu91 avatar Jan 18 '24 11:01 sshanmu91