andreypopp / andreypopp/typescript-loader
node.d.ts is unusable with this loader
- Langage dominant
- JavaScript
- Étoiles
- 81
- Forks
- 9
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.