microsoft / microsoft/TypeScript-Sublime-Plugin
typescript sublime ionic 2 throwing errors in node_modules folder
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 236
- Avg merge
- 21d 13h
- Merged PRs (30d)
- 1
Description
I'm trying to start with ionic2 rc0, sublime text 3 and Microsoft/TypeScript-Sublime-Plugin: when I build the compiler goes well on the ionic side, so in the shell I can see that the app has been built. On the Sublime's output console I see a lot of these error outputs (this is an example):
node_modules/@angular/core/src/application_ref.d.ts [4 errors]
(106, 67) Cannot find name 'Promise'.
(122, 101) Cannot find name 'Promise'.
(148, 67) Cannot find name 'Promise'.
(150, 101) Cannot find name 'Promise'.
Your system information:
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.8.5
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.0
Xcode version: Xcode 8.0 Build version 8A218a
my tsconfig.json
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"dom",
"es6"
],
"module": "es2015",
"moduleResolution": "node",
"target": "es5"
},
"files" :[
"node_modules/typescript/lib/lib.es6.d.ts"
],
"exclude": [
"node_modules"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}
my plugin config file
{
"typescript_auto_format": false,
"enable_typescript_language_service": true
}
and user settings
{
"color_scheme": "Packages/JavaScriptNext - ES6 Syntax/Monokai Phoenix.tmTheme",
"font_size": 11,
"ignored_packages":
[
"Vintage"
],
"typescript_auto_format": false
}
this is making impossible to work with the plugin turned on. any idea to let it work well?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the reported tsconfig.json, the TypeScript plugin configuration, and Sublime Text user settings, then reproduce the build with the listed Ionic and TypeScript setup. Compare the plugin's diagnostics with the shell build; done means the node_modules/@angular/core/src/application_ref.d.ts Promise errors no longer appear while the project still builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100