http-vue-loader icon indicating copy to clipboard operation
http-vue-loader copied to clipboard

ie11中compile返回的Promise对象会抛出错误

Open 18487197435 opened this issue 5 years ago • 0 comments

[Vue warn]: Failed to resolve async component: function() {

		return new Component(name).load(url)
		.then(function(component) {
			console.log(component)
			return component.normalize();
		})
		.then(function(component) {
			console.log("我是第二个");
			console.log(component);
			return component.compile()
			//return Promise.resolve(component);
		})
		.then(function(component) {
			console.log("我是第三个");
			console.log(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: 缺少 ':'

18487197435 avatar Dec 08 '20 07:12 18487197435