Skip to content

Options API erro after updating to "@quasar/app-vite": "^3.0.0" #18355

Description

@kevinmelo

What happened?

I create a new project with following command: npm init quasar@latest
Everything looks greate, then i edit the index.vue file to use Option API no the composition, it's giving me the following erro:

TypeError: Cannot add property leftDrawerOpen, object is not extensible
    at _createVNode.onUpdate:modelValue._cache.<computed>._cache.<computed> (index.vue:13:38)
    at callWithErrorHandling (vue.runtime.esm-bundler-DYqNBX5Z.js?v=a383c820:1901:17)
    at callWithAsyncErrorHandling (vue.runtime.esm-bundler-DYqNBX5Z.js?v=a383c820:1908:15)
    at emit (vue.runtime.esm-bundler-DYqNBX5Z.js?v=a383c820:4696:15)
    at hide (quasar_dist_quasar__client__js.js?v=a383c820:2715:4)
    at quasar_dist_quasar__client__js.js?v=a383c820:9959:24
    at callWithErrorHandling (vue.runtime.esm-bundler-DYqNBX5Z.js?v=a383c820:1901:17)
    at callWithAsyncErrorHandling (vue.runtime.esm-bundler-DYqNBX5Z.js?v=a383c820:1908:15)
    at baseWatchOptions.call (vue.runtime.esm-bundler-DYqNBX5Z.js?v=a383c820:2400:46)
    at job (vue.runtime.esm-bundler-DYqNBX5Z.js?v=a383c820:1682:13)

What did you expect to happen?

Expect to not break when using Option API

Reproduction URL

don't have

How to reproduce?

  1. Create a new quasar projetc with only js + pinia + eslint (SPA mode)
  2. Edit the file index.vue from pages to Options API
  3. See the error

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

SPA Mode

Platforms/Browsers

Chrome

Quasar info output

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions