microsoft / microsoft/TypeScript-Sublime-Plugin
typescript sublime ionic 2 throwing errors in node_modules folder
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 1.7k
- Fork
- 236
- Merge medio
- 21g 13h
- PR unite (30g)
- 1
Descrizione
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?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando il tsconfig.json segnalato, la configurazione del plugin TypeScript e le impostazioni utente di Sublime Text, quindi riproduci la build con la configurazione Ionic e TypeScript indicata. Confronta la diagnostica del plugin con la build dalla shell; il lavoro è completato quando gli errori Promise in node_modules/@angular/core/src/application_ref.d.ts non compaiono più, mentre il progetto continua a essere compilato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100