Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

import之后无法注册 #1

Closed
inkscar1 opened this issue Oct 20, 2017 · 3 comments
Closed

import之后无法注册 #1

inkscar1 opened this issue Oct 20, 2017 · 3 comments

Comments

@inkscar1
Copy link

npm安装后通过import引入,然后一直报错组件无法引入,不知道什么原因

@mariomka
Copy link
Owner

I'm sorry I don't understand Chinese. Anyway, I've translated your message with Google Translator but I need more information like error messages, a code snippet, steps to reproduce or something similar.

@inkscar1
Copy link
Author

I'm sorry, I'm so used to asking questions in Chinese, and I don't describe the problem clearly,
first,i used npm install vue-datetime --save to install it ,it's successed in node_modules.
and in main.js used import dateTime from 'vue-datetime' and Vue.use(dateTime) .
and then i started it in my pages,but it never take effect,
vue.esm.js?6580:571 [Vue warn]: Unknown custom element: <dateTime> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Yes, you guessed it.... I'm using Google Translator , too

@mariomka
Copy link
Owner

Files didn't publish on NPM correctly. Update to last version v.0.3.1.

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

No branches or pull requests

2 participants