vue-core-image-upload
vue-core-image-upload copied to clipboard
由2.3.10升级到2.4.1遇到的问题
新版的改动会引起编译的问题:
- !!vue-style-loader!css-loader?{"minimize":false,"sourceMap":false}!../../[email protected]@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-cf8f8 9e4","scoped":true,"hasInlineConfig":false}!./style/crop.css in ./node_modules/[email protected]@vue-core-image-upload/dist/crop.vue
- !!vue-style-loader!css-loader?{"minimize":false,"sourceMap":false}!../../[email protected]@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-6b61a e0c","scoped":false,"hasInlineConfig":false}!./style/style.css in ./node_modules/[email protected]@vue-core-image-upload/dist/vue-core-image-upload.vue
查看2.4,1版本中的crop.vue中css的引入为 而2.3.10中引入的css是在当前文档
目前我这边的解决方案是: package.json中的引入 "vue-core-image-upload": "^2.3.10", 改为 "vue-core-image-upload": "2.3.10";将只下载2.3.10版本
I just had the same issue. Forcing the version 2.3.10 works. Can we have some unit tests in here going forward?
同样问题。重新固定到了2.3.10版本
cnpm install --save [email protected]
这个 style 目录不存在 npm 上发布的包中导致的
可以把src目录下的style文件夹copy到dist目录,或者import VueCoreImageUpload from '../../../node_modules/vue-core-image-upload/src/vue-core-image-upload.vue' 都可以解决。 但我有一个问题,无论用2.3.10,还是2.4.1,都会导致部分手机(如魅族MX4、华为P8等)自带浏览器无法渲染整个项目,不知道哪位有没有同样问题? https://github.com/Vanthink-UED/vue-core-image-upload/issues/180