microsoft / microsoft/TypeScript-Sublime-Plugin
typescript sublime ionic 2 throwing errors in node_modules folder
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.7k
- Forks
- 236
- Ø Merge
- 21 T. 13 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Überprüfung der gemeldeten tsconfig.json, der TypeScript-Plugin-Konfiguration und der Benutzereinstellungen von Sublime Text, und reproduziere anschließend den Build mit dem aufgeführten Ionic- und TypeScript-Setup. Vergleiche die Diagnosen des Plugins mit dem Shell-Build; als erledigt gilt die Aufgabe, wenn die Promise-Fehler in node_modules/@angular/core/src/application_ref.d.ts nicht mehr auftreten, während das Projekt weiterhin gebaut wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100