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

用vue-cli使用有问题呀 #4

Closed
wxxtqk opened this issue May 17, 2018 · 11 comments
Closed

用vue-cli使用有问题呀 #4

wxxtqk opened this issue May 17, 2018 · 11 comments
Labels
bug Something isn't working

Comments

@wxxtqk
Copy link

wxxtqk commented May 17, 2018

我在项目下
npm install --save form-create

然后在main.js中
引入并使用
import formCreate from 'form-create'
Vue.use(formCreate)

居然报
This dependency was not found:

  • form-create in ./src/main.js

To install it, you can run: npm install --save form-create

请问这是什么原因呢

@xaboy
Copy link
Owner

xaboy commented May 17, 2018

稍等,我看一下

@xaboy
Copy link
Owner

xaboy commented May 17, 2018

处理了,你更新一下1.1.6版本,看下好了没

@xaboy xaboy added good first issue Good for newcomers bug Something isn't working and removed good first issue Good for newcomers labels May 17, 2018
@wxxtqk
Copy link
Author

wxxtqk commented May 17, 2018

刚刚测试一遍,还是存在问题,不是require的引入的问题了,而是在实例化使用的时候会报一些组件没有安装,详细的错误报告我已经发您邮箱了,麻烦查收一下

@xaboy
Copy link
Owner

xaboy commented May 17, 2018

我这个基于的是iview,不是elementui

@wxxtqk
Copy link
Author

wxxtqk commented May 18, 2018

  1. cnpm install --save iview@2.13.0
    2.其中main中使用
    import Vue from 'vue'
    import App from './App'
    import iView from 'iview'
    import 'iview/dist/styles/iview.css'
    import formCreate from 'form-create'
    Vue.config.productionTip = false
    Vue.use(iView)
    Vue.use(formCreate)
    /* eslint-disable no-new */
    new Vue({
    el: '#app',
    components: { App },
    template: ''
    })
    其中vue版本为2.5.2
    页面能够渲染显示出来, 也能够使用,但是在操作表单的时候会报以下错误
    vue.esm.js?efeb:591 [Vue warn]:
    Duplicate keys detected:
    'uph010'. This may cause an update error.
    (found in Root)

@xaboy
Copy link
Owner

xaboy commented May 18, 2018

把表单规则发一下,我看看

@wxxtqk
Copy link
Author

wxxtqk commented May 18, 2018

我发您邮箱了

@xaboy
Copy link
Owner

xaboy commented May 18, 2018

这个小问题,已处理,会在1.1.7版本中修复

@wxxtqk
Copy link
Author

wxxtqk commented May 18, 2018

感谢了,希望可以把1.1.7早点发布到npm 再次感谢

@xaboy
Copy link
Owner

xaboy commented May 18, 2018

npm 1.1.7版本发布了,你更新一下看看

@wxxtqk
Copy link
Author

wxxtqk commented May 18, 2018

感谢作者的耐心解答,已经可以了

@xaboy xaboy closed this as completed May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants