Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

awaismunawar's avatar

How can we add our vuejs code

HI, I am using laravel spark. i created new form and try to use vuejs. It is not working i am getting this warning Property or method "mainMessage" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option. (found in root instance)

0 likes
1 reply
ejdelmonico's avatar

Well, you are going to have to post the code for hep but the message is pretty clear of what the issues are. Are you using Vue Tools extension in Chrome? Also, forms should return a new SparkForm() in the data section of the component. https://spark.laravel.com/docs/3.0/forms

Please or to participate in this conversation.