Laravel and VueJS with Keen UI

Write your comment…

Hi,

I've followed these instructions exactly on a fresh Laravel 5.3 install, however when I add:

<ui-button color="primary" icon="add"> ADD POST </ui-button>

to the welcome view it just displays text, I have tried pulling in /js/main.js from the public folder but still can't get it to work, what am I missing here?

Yes it just displays the plain text and not the button it should, I get the following error in the console: [Vue warn]: Unknown custom element: <ui-button> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

I can add simple vue.js script by declaring const app = new Vue({ in app.js and it works fine but for some reason following your instructions above and declaring vue in main.js is not working for me.

Write a reply...

Join a friendly and inclusive Q&A network for coders

  • 🖥Pick the technologies you like & read great content through your feed.
  • 💬Ask a question when you want to learn more about anything.
  • 🚀Share what you know & build your portfolio.
Sign up nowLearn more

loading ...