[Vue] How to use component of a component library (npm package)? #2359
Unanswered
momocode-de
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have integrated ux-vue as described here. I want to use it with the asset mapper, which already works if I write my own components in .js format under
assets/vue/controllers
.I would now like to use Naive UI as a component library. I have added the library with
bin/console importmap:require naive-ui
to the importmap. Then I added the following to myassets/app.js
:In the template I tried to add a simple component like “n-divider”:
I get the error:
Vue controller "n-divider" does not exist
So how can you use components from an external package?
Beta Was this translation helpful? Give feedback.
All reactions