Error in bundle for angular with *.spec.ts files


#1

Hi, I’m trying to run an android project using tns run android --bundle command, but I get errors in all *.spec.ts files. If I remove the files everything works, but I can’t remove them because are used for web.


#2

Try adding "**/*.spec.ts" to exclude option in tsconfig.json
It should make it ignore the *.spec files when building


#3

Thank you so much!!! it works!!!