nativescript-camera-plus icon indicating copy to clipboard operation
nativescript-camera-plus copied to clipboard

Error in Nativescript 7.3.0 and angular 11.2.5

Open jitendraP-ashutec opened this issue 4 years ago • 2 comments

Hi I am getting below error in android. I am using @nstudio/nativescript-camera-plus 3.4.0 version

Module not found: Error: Can't resolve 'tns-core-modules/ui/core/view/view' in '/NativeScript/node_modules/@nstudio/nativescript-camera-plus'
 @ ../node_modules/@nstudio/nativescript-camera-plus/camera-plus.js 10:13-58
 @ ./app.component.ts
 @ ./app.module.ts
 @ ./main.ts

could you please help me to fix this issue

jitendraP-ashutec avatar May 19 '21 13:05 jitendraP-ashutec

I had the same problem. But then I realised that the «latest» version all of a sudden seems to be 3.4.0 - whereas the version before was 4.0.3 - which is giving me different errors right now. Either was - I think something went terribly wrong with the last push.

swissdude avatar May 24 '21 15:05 swissdude

I downloaded the plugin, placed the code in the plugins folder, connected it via package.json

"@nstudio/nativescript-camera-plus": "file:plugins/nativescript-camera-plus"

In tsconfig.json added

  "include": [
    "src/tests/**/*.ts",
    "src/**/*.ios.ts",
    "src/**/*.android.ts",
    "plugins/**/*.ts" <-- here
  ],

and rewritten the paths compatible with the version 7,8 2021-07-07_17-06-24

Bezlepkin avatar Jul 07 '21 14:07 Bezlepkin