Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

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

Open
@18487197435

Description

[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: 缺少 ':'

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions