compiling vue components in Wave

Posted In Wave
  • sedi-bakhshi 8 months ago
    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.

  • nick-jensen 8 months ago
    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.

  • sedi-bakhshi 8 months ago
    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.

  • frode-meling 8 months ago
    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.

  • sedi-bakhshi 8 months ago
    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.

  • jahangir-mohammed 8 months ago
    I'm quite intrested in this to, good luck.

    I'm quite intrested in this to, good luck.

  • derekbuntin 8 months ago
    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 will 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 will 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.

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
Want to create your own SAAS?

I can teach you to create your own Software as a Service. Click here to learn more!

Visit SAAS Adventure!