简体   繁体   中英

Nativescript camera

After this - import * as camera from "nativescript-camera"; I got this error upon: ns debug android

error:

ERROR in./node_modules/nativescript-camera/camera.android.js 21:24-63 Module not found: Error: Can't resolve 'tns-core-modules/utils/utils'

you can try this.

  1. Go to node_modules/tns-core-modules/utils.d.ts
  2. Update the utils.d.ts with following: export * from "@nativescript/core/utils/utils";
  3. npm install
  4. Run application

you need to use package @nativescript-camera

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM