Composition API breaks Front-End Packages #6076
Unanswered
muhammadsaeedparacha
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Nova has tons of packages that provide front-end functionality by overriding it's vue components.
They are breaking as a result of moving to composition API.
Example:
Create a Tool
php artisan nova:tool HeaderPackage
Create a Vue Component to override existing - Main Header in this case, and extend
The component fails to extend properly, and properties and methods from the parent component are not available. They work in dev version of files
npm run dev
but not in prodnpm run prod
.Vue Documentation:

Composition API doesn't properly support extending components.
https://vuejs.org/api/options-composition.html
Beta Was this translation helpful? Give feedback.
All reactions