[Vuejs]-Couldn't compile opencv4nodejs in Vue + electron application

0๐Ÿ‘

โœ…

As our friend @Eldar commented adding node-loader to vue.config.js works for me. Thank you

module.exports = {
  chainWebpack: config => {
    config.module       .rule('ts')
        .use('ts-loader')
        .loader('ts-loader')
        .end()
        .rule(/\.node$/)
        .use('node-loader')
        .loader('node-loader')
        .end()
  }
};

Hope this is useful folks.

Leave a comment