Undefined variable $__env (View: /var/www/html/public) (View: /var/www/html/resources/themes/velocity/views/home/index.blade.php)
Whenever i try to run npm run production and npm run watch in pacakages/webkul/admin, packages/webkul/ui and packages/webkul/shop, The following error occurs.How to solve it
Import\Create custom VueJS component to the view file!
Serhii last edited by
I want to create my Vue component and display it on the page, but I can't do it.
First of all, I added example.vue file to the:
Then in the file:
packages/Webkul/Velocity/src/Resources/assets/js/app.jsI added next lines
import VueExample from 'example-component';
In the view file:
resources/themes/velocity/views/products/view.blade.php, I added
<example-component></example-component>but nothing happens.
This is the first time I do it) How can I add this component?
devansh-webkul last edited by
Did you compile your assets?