So past few weeks i had been developing and there were 2-3 errors in typescript but those errors never stopped the js bundle from compiling, it always compiled. Today i had to reinstall node, npm and all files. Since then those typescript errors dont let the bundle compile, there’s nothing changed in the package.js or any config file. I wonder what made it stop bundling. And the errors which i ignored were
import {Facebook} from 'ionic-native';
declare const Facebook:any;
login() {
return new Promise((resolve, reject) => {
Facebook.login(['email', 'public_profile', 'user_friends'],
(resp) => {
.....
Error TS2440: Import declaration conflicts with local declaration of ‘Facebook’
``
if i remove the const, i get Error TS2346: Supplied parameters do not match any signature of call target.
confused on why bundling stopped, is there a way to suppress the errors/warnings?