wxingheng / vux-uploads Goto Github PK
View Code? Open in Web Editor NEWvux-uploads vux-uploader vux-upload 对vux组件库的一个补充
vux-uploads vux-uploader vux-upload 对vux组件库的一个补充
编译报错了,是不是跟目前的vux版本配置不兼容啊,vux用的好像是env stage-2 不是es2015哦,请问这个怎么解决?
ERROR Failed to compile with 2 errors 17:58:11
error in ./node_modules/vux-uploads/src/components/uploader.vue
Module build failed: Error: Couldn't find preset "es2015" relative to directory "D:\code\erp-mobile\node_modules\vux-uploads"
at D:\code\erp-mobile\node_modules\babel-core\lib\transformation\file\options\option-manager.js:293:19
at Array.map ()
at OptionManager.resolvePresets (D:\code\erp-mobile\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
at OptionManager.mergePresets (D:\code\erp-mobile\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
at OptionManager.mergeOptions (D:\code\erp-mobile\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
at OptionManager.init (D:\code\erp-mobile\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
at File.initOptions (D:\code\erp-mobile\node_modules\babel-core\lib\transformation\file\index.js:212:65)
at new File (D:\code\erp-mobile\node_modules\babel-core\lib\transformation\file\index.js:135:24)
at Pipeline.transform (D:\code\erp-mobile\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
at transpile (D:\code\erp-mobile\node_modules\babel-loader\lib\index.js:50:20)
at Object.module.exports (D:\code\erp-mobile\node_modules\babel-loader\lib\index.js:173:20)
@ ./node_modules/vux-uploads/src/components/uploader.vue 8:0-180
@ ./node_modules/vux-uploads/src/main.js
@ ./node_modules/babel-loader/lib!./node_modules/vux-loader/src/script-loader.js!./node_modules/vux-loader/src/script-loader.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/Product/ProductLibrary/AddCombine.vue
@ ./src/components/Product/ProductLibrary/AddCombine.vue
@ ./src/router/routes.js
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:3003 webpack/hot/dev-server ./src/main.js
error in ./node_modules/vux-uploads/src/components/uploader.vue
// 引入weui的样式
import './assets/style/weui.css'
This relative module was not found:
* ./assets/style/weui.css in ./src/main.js
上传图片后可删除
查看源码发现无删除功能
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.