I’m on Ionic2, and I’m running into a litany of TS errors when trying to serve my application:
I’m seeing
ERROR in [default]...Cannot find name 'require'.
ERROR in [default]...Cannot find name 'Promise'.
ERROR in [default]...Cannot find name 'Map'.
in all of my TypeScript files.
Here’s what I have in package.json
:
"dependencies": {
"angular2": "2.0.0-beta.6",
"es6-promise": "3.0.2",
"es6-shim": "0.33.13",
"ionic-framework": "2.0.0-beta.2",
"ionicons": "3.0.0-alpha.3",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.0",
"zone.js": "0.5.14"
},
I feel like I’m on the wrong version of one of these dependencies. Is there a way to resolve/suppress these errors without patching code in an npm_module file?