FranckFreiburger / http-vue-loader

load .vue files from your html/js
MIT License
1.49k stars 275 forks source link

mistake:Reason: TypeError: httpVueLoader.langProcessor[lang.toLowerCase()] is undefined #131

Open yibinliao opened 3 years ago

yibinliao commented 3 years ago

I referenced the vue component in the jsp project. The sub-components are based on the example in the sample document. I only used it once in the jsp, but there is still this error. I don’t understand what caused it. The specific error codes are as follows:`[Vue warn]: Failed to resolve async component: function() {

        return new Component(name).load(url)

        .then(function(component) {

            return component.normalize();

        })

        .then(function(component) {

            return component.compile();

        })

        .then(function(component) {

            var exports = component.script !== null ? component.script.module.exports : {};

            if ( component.template !== null )

                exports.template = component.template.getContent();

            if ( exports.name === undefined )

                if ( component.name !== undefined )

                    exports.name = component.name;

            exports._baseURI = component.baseURI;

            return exports;

        });

    }

Reason: TypeError: httpVueLoader.langProcessor[lang.toLowerCase()] is undefined`

This is the screenshot: image