[Vuejs]-Prevent Vue application from running if there is a typescript error

0👍

Found the answer at https://github.com/vuejs/vue-cli/issues/5014. You need to disable the async option in https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options

To do that I created a file vue.config.js:

module.exports = {
  chainWebpack: config => {
    config.plugin('fork-ts-checker').tap(options => {
      options[0].async = false
      return options
    })
  }
}

Leave a comment