Both npm run dev and prod works properly, however when I try to run watch, and change files, npm run watch throws an error and crashes.
Using laravel mix with TS, webpack mix params:
.webpackConfig({
module: {
rules: [
{
test: /\.tsx?$/,
loader: "ts-loader",
options: { appendTsSuffixTo: [/\.vue$/] },
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ["*", ".js", ".jsx", ".vue", ".ts", ".tsx"],
},
})
