-
Notifications
You must be signed in to change notification settings - Fork 181
Errors not emptied on watch #21
Comments
Actually, even new errors gets multiplied by the number of times since last save. |
@Keats could you please show me your webpack config? |
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'eval',
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./src/app/app.ts'
],
output: {
path: path.join(__dirname, 'build'),
filename: 'bundle.js'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
],
resolve: {
extensions: ['', '.js', '.ts']
},
resolveLoader: {
modulesDirectories: ['node_modules']
},
module: {
loaders: [
{
test: /\.ts$/,
loaders: ['react-hot', 'awesome-typescript-loader']
}
]
}
}; And it's started with gulp gulp.task('webpack:server', function() {
devServer = new webpackDevServer(devCompiler, {
contentBase: outputFolder,
hot: true,
watchDelay: 100,
stats: {
colors: true,
exclude: ['node_modules']
}
});
devServer.listen(3000, "localhost", function(err) {
if (err) {
throw new $.util.PluginError("webpack:server", err);
}
$.util.log("Server running on http://localhost:3000");
});
}); |
@Keats please check out v0.5.3 |
I've also added an example with react-hot-loader https://github.com/s-panferov/awesome-typescript-loader/tree/master/examples/react-hot |
After updating, I now get This is my tsconfig.json {
"compilerOptions": {
"noImplicitAny": true,
"removeComments": true
}
} |
Unrelated to that previous issue but how does this differs from https://github.com/jbrantly/ts-loader ? Might be worth putting in the readme |
For the error above: https://github.com/s-panferov/awesome-typescript-loader/blob/master/src/index.ts#L95-L96 is correct in the ts but not in dist so I'm assuming dist is from a slightly older version |
+1 |
same |
@s-panferov should be fixed by #24 |
Sorry for the delay, I was afk on the weekend. PR was merged, version will be released soon. |
v0.5.4 |
cheers mate, working for me |
Hello
I'm trying to setup a webpack workflow and am using that loader.
However, when running the webpack-dev-server errors accumulate in between runs ie on every filesave the same error gets pushed to an array I presume and I end up with one error for each time I saved the file.
Any way to cleanup the array or do some dedup?
The text was updated successfully, but these errors were encountered: