FranckFreiburger / http-vue-loader

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

Chrome / Firefox error #108

Closed dang-1234 closed 4 years ago

dang-1234 commented 4 years ago

I get the following error in Chrome: vue.js:485 [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: SyntaxError: Cannot use import statement outside a module

In Firefox

Reason: ReferenceError: responseText is not defined

dang-1234 commented 4 years ago

It's an issue with the vue component that I was trying to work with