andreypopp / andreypopp/typescript-loader

node.d.ts is unusable with this loader

オープン
#14 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
81
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

説明

Hey,

thanks for the great project. But unfortunately I have run into an issue. If you install the node.d.ts from definitelytyped.org the loader tries to resolve the `require` statements inside that file, even though they refer to definitions inside that file.

Excerpt from my config:

``` js
resolve: { extensions: ['', '.webpack.js', '.web.js', '.js', '.ts'] }
loaders: [
{
test: /\.ts?$/,
exclude: /node_modules/,
loader: 'babel!typescript-loader?noImplicitAny=true&target=es6!ts-jsx-loader'
}
]
```

The error is

```
Module build failed: Error: Cannot resolve module 'net.ts' in path/to/typings/node
```

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

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

評価

この issue はまだ評価されていません。

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

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