How can I make Razzle not repeat itself infinity times when saving in VS Code a file that is already saved? #1638
-
I begin with: $ npm start Razzle starts up, the browser can access the app. I have in VS Code a file inside the Razzle-based project (e.g. some .ts file) that I save again although it is already saved. I get this in the terminal: It repeats itself until I press My razzle.config.js is this: module.exports = {
plugins: ["scss"],
modifyWebpackOptions({ env: { target, dev }, options: { webpackOptions } }) {
webpackOptions.notNodeExternalResMatch = (request, context) => {
return /(react-syntax-highlighter|react-virtualized|react-select-virtualized|tiny-slider)/.test(
request
);
};
webpackOptions.babelRule.include = webpackOptions.babelRule.include.concat([
/react-syntax-highlighter/,
/react-virtualized/,
/react-select-virtualized/,
/tiny-slider/,
]);
return webpackOptions;
},
}; What can I do next? Is it something obvious or should I post the verbose debug output? If yes, all of it or just one of the flags inside Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 46 replies
-
You are probably watching some files in the build directory or something |
Beta Was this translation helpful? Give feedback.
-
noEmit must be true |
Beta Was this translation helpful? Give feedback.
-
Mixing js and ts seems to cause issues. |
Beta Was this translation helpful? Give feedback.
Mixing js and ts seems to cause issues.