Skip to content
This repository has been archived by the owner on Dec 12, 2017. It is now read-only.

1.2.9和1.2.10eslint不正常显示 #129

Closed
gengxuelei opened this issue Dec 16, 2016 · 8 comments
Closed

1.2.9和1.2.10eslint不正常显示 #129

gengxuelei opened this issue Dec 16, 2016 · 8 comments
Labels

Comments

@gengxuelei
Copy link

windows10
node: 6.2.0
npm: 3.10.8

1.2.8及之前版本正常,
升级到1.2.9之后发现,如果有语法错误(如多了一个空行)会报错

但是,删掉多余空行之后,错误信息不会清空

猜测是这次提交引起的问题:
1adf0cb#diff-4ac32a78649ca5bdd8e0ba38b7006a1e

@lincenying
Copy link

你应该把错误信息贴出来, 而不是这个

@gengxuelei
Copy link
Author

@lincenying 多一个空行报错:
image
image
删掉多余的空行后错误信息不会消失

@QingWei-Li
Copy link
Contributor

QingWei-Li commented Dec 19, 2016

麻烦给一个能复现问题的示例项目

@QingWei-Li QingWei-Li added the bug label Dec 19, 2016
@QingWei-Li
Copy link
Contributor

重装下就好了

@gengxuelei
Copy link
Author

上周重装了n次没成功,从1.2.5到1.2.10,每一个版本试了2次,1.2.9+都是上述问题,本周卸载重装1.2.10,神奇地好了,好神奇!

@QingWei-Li
Copy link
Contributor

我也没找到到底哪个依赖升级导致的,本来我的也有问题,升级依赖就好了...

@gengxuelei
Copy link
Author

@QingWei-Li 不知道是我写的有问题,还是vue-router文档有问题,
https://router.vuejs.org/zh-cn/advanced/lazy-loading.html
按照文档的简写分块异步加载有如下问题:
从同步组件切换到异步组件正常,再切到同步组件,再切换到异步组件,异步组件就不显示了

// 分块,异步加载(切换有问题)
const a = resolve => require(['src/components/wx/a.vue'], resolve);

// 分块,同步加载,切换正常
const a = require('bundle-loader!src/components/wx/a.vue');

// 分块,异步加载,切换正常
const a = resolve => {
  require.ensure(['src/components/wx/a.vue'], () => {
  resolve(require('src/components/wx/a.vue'));
  });
};

如果你看到了这里,能否顺便告知异步组件的打包出来的js的路径怎么修改,直接修改publicPath的话,js和img图片和css图片的地址不就麻烦了

@QingWei-Li
Copy link
Contributor

@Saopang 请给 demo 项目

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

No branches or pull requests

3 participants