Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
Property "test" was accessed during render but is not defined on instance + declarations may only appear at top level of a module

I'm working on a small project using Vue.js 3 and Laravel, I'm getting a problem in my browser console I don't know why:

This is my code:

    <form action="{{ route("newPost") }}" method="post" id="new-post">
                @csrf
                <div class="card-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">Title</label>
                        <input type="text" name="post_title" class="form-control" placeholder="Post title">
                    </div>
                    <div class="form-group">
                        <label>Content</label>
                        <quill-editor v-model="test" />
                    </div>
                </div>
                <!-- /.card-body -->
                <div class="card-footer">
                    <button type="submit" class="btn btn-primary">Submit</button>
                </div>
            </form>

This is my JS Part :

    @push("scripts")
    <script>
        export default {
            setup() {
                test: ''
            }
        }
    </script>
    @endpush

The Error Message contain :

[Vue warn]: Property "test" was accessed during render but is not defined on instance. 
  at <App>

Second

Uncaught SyntaxError: export declarations may only appear at top level of a module
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!