Vuecli3.0 build error reporting problem

use vuecli3.0 configuration, do not report errors at run time, and package times is wrong
Building for production. ERROR Error: No loader specified

clipboard.png

then I added that configuration
chainWebpack: (config) = > {

    config.module.rule("scss").use("sass-loader").tap(options =>
        merge(options, {ncludePaths: [path.resolve(dirname, "node_modules")],});
    config.module.rule("vue").use("vue-loader")
    .loader("vue-loader")
    .tap(options => {
        return options;
    });
},

but I still made a mistake. Did I configure something less?

Aug.23,2021

Hello, landlord! You do have a slight problem with your configuration,

chainWebpack: (config) => {
    config.module.rule('scss').use('sass-loader').tap(options =>
        // ncludePaths -> includePaths dirname -> __dirname  
        merge(options, {ncludePaths: [path.resolve(dirname, 'node_modules')],});
    config.module.rule('vue').use('vue-loader')
    .loader('vue-loader')
    .tap(options => {
        return options;
    });
},
< hr >

if it is helpful, please click to adopt it, thank you ~

Menu