Skip to content
New issue

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

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

Already on GitHub? # to your account

todos-esnext这个example下载跑不起来,请更新 #291

Closed
nickrogit opened this issue May 7, 2018 · 6 comments
Closed

todos-esnext这个example下载跑不起来,请更新 #291

nickrogit opened this issue May 7, 2018 · 6 comments

Comments

@nickrogit
Copy link

todos-esnext这个example下载跑不起来,请更新

@nickrogit
Copy link
Author

"babel-preset-es2015": "^6.0.0",删掉改为npm i babel-preset-env
.babelrc文件里对应也改掉,详情看http://babeljs.io/env
"san-loader": "github:ecomfe/san-loader",删掉重新安装npm i san-loader
再全部安装
终于跑起来了,不过ie8不支持,报错polyfill-eventsource added missing EventSource to window

@errorrik
Copy link
Contributor

errorrik commented May 7, 2018

求发个pr呗。

ie8不支持可能和webpack的版本有关,其实esnext的example本来也没打算支持ie8。需要支持ie8的产品必然要放弃很多现代的玩法,否则会把自己坑进去

@Dafrok
Copy link
Contributor

Dafrok commented May 8, 2018

好像蛮多人不知道 webpack2+ 不支持 IE8 的,不如直接把这个写到文档或 README 里?

@nickrogit
Copy link
Author

@errorrik 不支持ie8我何必用这个框架。。。

@errorrik
Copy link
Contributor

errorrik commented May 8, 2018

框架是支持 ie8 的,但是你选择了不支持 ie8 的玩法

@Dafrok
Copy link
Contributor

Dafrok commented May 8, 2018

你一定要使用 webpack 来开发的话,即使只写一行 alert('helloworld') 在 IE8 下都是会抛错的。如果你对 webpack 有这方面要求,这个问题可以去 https://github.com/webpack/webpack/issues 寻求帮助

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants