microsoft / microsoft/TypeScript-Sublime-Plugin

typescript sublime ionic 2 throwing errors in node_modules folder

オープン
#533 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
1.7k
フォーク
236
平均マージ
21日 13時間
マージ済み PR(30日)
1

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、報告されている tsconfig.json、TypeScript プラグインの設定、Sublime Text のユーザー設定を確認し、記載されている Ionic および TypeScript のセットアップでビルドを再現します。プラグインの診断結果とシェルでのビルドを比較します。node_modules/@angular/core/src/application_ref.d.ts の Promise エラーが表示されなくなり、プロジェクトが引き続きビルドできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。