Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ie8报错 #15

Closed
oridark opened this issue Apr 27, 2017 · 2 comments
Closed

ie8报错 #15

oridark opened this issue Apr 27, 2017 · 2 comments

Comments

@oridark
Copy link

oridark commented Apr 27, 2017

直接clone的代码,本地 cnpm install,然后build,在ie8下执行build后的代码,出错。

报错信息:
SCRIPT1010: 缺少标识符
index.a3d2acf4.js (185,37)

查看代码:
webpack_require.e/* require.ensure */(0).then((function () {
var foo = webpack_require(20);
console.log(foo);

}).bind(null, webpack_require)).catch(webpack_require.oe); //185行

var vm = avalon.define({
$id: "test",
name: "司徒正美",
array: [11, 22, 33]
});
qq 20170427174646
qq 20170427174641

@sayll
Copy link
Owner

sayll commented Apr 27, 2017

不好意思,应该是webpack2 不支持 require.ensure,去掉view/index/index.js的这部分就好了。

@oridark
Copy link
Author

oridark commented Apr 27, 2017

确实,本地试了,去除后就不报错了,正常运行了

@oridark oridark closed this as completed Apr 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants