I have some vue components that work in a normal laravel project perfectly, but when i bring them in a theme of Wave, they compiled successfully but not showing in browser and I have this error: "[Vue warn]: Unknown custom element: <....> - did you register the component correctly? For recursive components, make sure to provide the "name" option." Someone have any idea how to solve this error? Thank.
I have some vue components that work in a normal laravel project perfectly, but when i bring them in a theme of Wave, they compiled successfully but not showing in browser and I have this error:
"[Vue warn]: Unknown custom element: <....> - did you register the component correctly? For recursive components, make sure to provide the "name" option."
Someone have any idea how to solve this error? Thank.
I do not believe Wave ships Vue ready. You need to add Vue to your App.
I do not believe Wave ships Vue ready. You need to add Vue to your App.
I installed it with npm cammand. But after compiling I get that error.
I installed it with npm cammand. But after compiling I get that error.
I think best way is to put it into a themes folder and use the npm from that folder. Add the vue building into the webpack.mix.js then use `npm run watch` to build in background.
I think best way is to put it into a themes folder and use the npm from that folder. Add the vue building into the webpack.mix.js
then use npm run watch
to build in background.
Thank you so much for your reply. Idid it exactly as you said but I got the same error.
Thank you so much for your reply. Idid it exactly as you said but I got the same error.
I'm quite intrested in this to, good luck.
I'm quite intrested in this to, good luck.
You will encounter issues with Vue and the SVG's used on the homepage as they have a 'style' declaration within the wave SVG's. The plans page wil also give you problems because the scripts are inluded within your blade template, I've moved those to their own 'scripts' section so they are loaded with the other scripts in the body before the < /body> tag.
You will encounter issues with Vue and the SVG's used on the homepage as they have a 'style' declaration within the wave SVG's.
The plans page wil also give you problems because the scripts are inluded within your blade template, I've moved those to their own 'scripts' section so they are loaded with the other scripts in the body before the < /body> tag.