Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sshanmu91 opened this issue Jan 17, 2024 · 2 comments
Open

Comments

@sshanmu91
Copy link

sshanmu91 commented Jan 17, 2024

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 sshanmu91 changed the title Build Issue with Angular 13 - NPM Error Build Issue with Angular v13 - Node JS v14.8.2 - TS v4.6.4 - NPM Error Jan 18, 2024
@sshanmu91 sshanmu91 changed the title Build Issue with Angular v13 - Node JS v14.8.2 - TS v4.6.4 - NPM Error Build Issue with Angular v13 - Node JS v14.18.2 - TS v4.6.4 - NPM Error Jan 18, 2024
@sshanmu91
Copy link
Author

@icheered @RReverser

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

@sshanmu91
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant