NativeScript / nativescript-camera

NativeScript plugin to empower using device camera.
Apache License 2.0
93 stars 47 forks source link

ERROR in ../node_modules/nativescript-camera/camera.js #255

Open kenedynpsyh opened 3 years ago

kenedynpsyh commented 3 years ago

hi I have a problem here, I want to solve this problem, every hour and meet tomorrow and still have the same problem, maybe some of you have the same problem with me, I use nativescript for vue

ERROR in ../node_modules/nativescript-camera/camera.js Module not found: Error: Can't resolve 'tns-core-modules/application/application' in '/Users/shadow/app/algorithm-dt/node_modules/nativescript-camera' @ ../node_modules/nativescript-camera/camera.js 7:24-75 @ ../node_modules/ts-loader??ref--6!../node_modules/vue-loader/lib??vue-loader-options!./components/auth/create.vue?vue&type=script&lang=ts& @ ./components/auth/create.vue?vue&type=script&lang=ts& @ ./components/auth/create.vue @ ./routes/index.ts @ . sync (?<!\bAppResources\b.)(?<!.\/\btests\b\/.?).(xml|css|js|(?<!.d.)ts|(?<!\b[\w-]*.)scss)$ @ ./app.ts

ERROR in ../node_modules/nativescript-camera/camera.js Module not found: Error: Can't resolve 'tns-core-modules/image-asset/image-asset' in '/Users/shadow/app/algorithm-dt/node_modules/nativescript-camera' @ ../node_modules/nativescript-camera/camera.js 9:23-74 @ ../node_modules/ts-loader??ref--6!../node_modules/vue-loader/lib??vue-loader-options!./components/auth/create.vue?vue&type=script&lang=ts& @ ./components/auth/create.vue?vue&type=script&lang=ts& @ ./components/auth/create.vue @ ./routes/index.ts @ . sync (?<!\bAppResources\b.)(?<!.\/\btests\b\/.?).(xml|css|js|(?<!.d.)ts|(?<!\b[\w-]*.)scss)$ @ ./app.ts

ERROR in ../node_modules/nativescript-camera/camera.js Module not found: Error: Can't resolve 'tns-core-modules/platform/platform' in '/Users/shadow/app/algorithm-dt/node_modules/nativescript-camera' @ ../node_modules/nativescript-camera/camera.js 13:15-60 @ ../node_modules/ts-loader??ref--6!../node_modules/vue-loader/lib??vue-loader-options!./components/auth/create.vue?vue&type=script&lang=ts& @ ./components/auth/create.vue?vue&type=script&lang=ts& @ ./components/auth/create.vue @ ./routes/index.ts @ . sync (?<!\bAppResources\b.)(?<!.\/\btests\b\/.?).(xml|css|js|(?<!.d.)ts|(?<!\b[\w-]*.)scss)$ @ ./app.ts

ERROR in ../node_modules/nativescript-camera/camera.js Module not found: Error: Can't resolve 'tns-core-modules/trace/trace' in '/Users/shadow/app/algorithm-dt/node_modules/nativescript-camera' @ ../node_modules/nativescript-camera/camera.js 11:12-51 @ ../node_modules/ts-loader??ref--6!../node_modules/vue-loader/lib??vue-loader-options!./components/auth/create.vue?vue&type=script&lang=ts& @ ./components/auth/create.vue?vue&type=script&lang=ts& @ ./components/auth/create.vue @ ./routes/index.ts @ . sync (?<!\bAppResources\b.)(?<!.\/\btests\b\/.?).(xml|css|js|(?<!.d.)ts|(?<!\b[\w-]*.)scss)$ @ ./app.ts

vallemar commented 3 years ago

you should install https://www.npmjs.com/package/@nativescript/camera for NS 7 or up