I created a project using the following command:
ng new -c=@nativescript/schematics project-name --shared
When I run tns run android
, I get the following errors:
platforms/android/app/build/intermediates/merged_assets/debug/mergeDebugAssets/out/app/tns_modules/zone.js/lib/zone-spec/long-stack-trace.ts(25,10): error TS2393: Duplicate function implementation.
platforms/android/app/build/intermediates/merged_assets/debug/mergeDebugAssets/out/app/tns_modules/zone.js/lib/zone.ts(632,6): error TS2300: Duplicate identifier 'AmbientZone'.
platforms/android/app/src/main/assets/app/tns_modules/rxjs/src/operator/catch.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/operator/catch'.
These are just sample errors. There are so many of these kind.
I tried;
npm install
Nothing worked so far.
ng --version
tns --version
5.1.0
Please seethe issue here
Basically, remove the tns_modules
folder from platforms/android/app/build/intermediates/merged_assets/debug/mergeDebugAssets/out/app/tns_modules/
It is apparently caused by npm link
command I used somewhere.
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.