You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running rollup in watch mode with typescript plugin if the typescript code is invalid the watcher breaks and exits with exit code 1. This make it impossible to re-build the code on code changes - you need to re-start the command every time.
(noEmitOnError ts compiler option doesn't help here)
Currently you have noEmitOnError: true in your project setup. Have you tried noEmitOnError: false to let typescript emit stuff even on errors instead of failing?
As stated on plugin readme, it ignores the noEmitOnError property defined in tsconfig.json.
The only way to override it is adding noEmitOnError: false at plugin setup. See example below:
Though I feel this should be enabled by default in watch mode, otherwise it's rather unintuitive.
Yeah, I agree with that too. Perhaps you can open a new Feature Request so the maintainers can discuss this with you and hopefully agree to add it to the plugin.
Activity
danimoh commentedon Mar 14, 2020
Currently you have
noEmitOnError: truein your project setup. Have you triednoEmitOnError: falseto let typescript emit stuff even on errors instead of failing?karolis-sh commentedon Mar 14, 2020
@danimoh yes, it has no effect.
Tylerian commentedon Mar 19, 2020
As stated on plugin readme, it ignores the
noEmitOnErrorproperty defined intsconfig.json.The only way to override it is adding
noEmitOnError: falseat plugin setup. See example below:karolis-sh commentedon Mar 19, 2020
@Tylerian yeah, you're right
typescript({ noEmitOnError: false })makes the plugin usable in development mode.Though I feel this should be enabled by default in watch mode, otherwise it's rather unintuitive.
Anyway, thanks for the help - it was getting pretty annoying to always restart my watchers.
Tylerian commentedon Mar 19, 2020
Yeah, I agree with that too. Perhaps you can open a new Feature Request so the maintainers can discuss this with you and hopefully agree to add it to the plugin.
Hashbrown777 commentedon May 26, 2021
For people who come across this because they want it on (/liked the default from before whenever #492 gets released) you can do this