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

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

Open
18487197435 opened this issue Dec 8, 2020 · 0 comments
Open

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

18487197435 opened this issue Dec 8, 2020 · 0 comments

Comments

@18487197435
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant