nstudio / nativescript-camera-plus

MIT License
79 stars 50 forks source link

Error in Nativescript 7.3.0 and angular 11.2.5 #160

Open jitendraP-ashutec opened 3 years ago

jitendraP-ashutec commented 3 years ago

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

swissdude commented 3 years ago

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.

Bezlepkin commented 3 years ago

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