vuejs / vue-loader

📦 Webpack loader for Vue.js components
MIT License
4.99k stars 915 forks source link

exportComponent not found #2032

Open CKHuang opened 1 year ago

CKHuang commented 1 year ago
"export 'default' (imported as 'exportComponent') was not found in '/path/to/node_modules/vue-loader/dist/exportHelper.js'

but,exportHelper.js file is exsit

// "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// runtime helper for setting properties on components
// in a tree-shakable way
exports.default = (sfc, props) => {
    const target = sfc.__vccOpts || sfc;
    for (const [key, val] of props) {
        target[key] = val;
    }
    return target;
};