Skip to content

QLayout crashes with UMD prod build (2.19.x) — isRuntimeSsrPreHydration is undefined in setup() #18272

@lianee

Description

@lianee

What happened?

Using in a UMD setup with an inline HTML template crashes with:

TypeError: Cannot read properties of undefined (reading 'value')
at setup (quasar.umd.prod.min.js:12:284707)
The crash is in QLayout.setup(), where it accesses isRuntimeSsrPreHydration.value. In the production UMD build, this variable is undefined at the time setup() runs.

The same code works with:

Quasar 2.18.7 prod build ✓
Quasar 2.19.x dev build (quasar.umd.js) ✓
This is a regression introduced in 2.19.0 (rolldown build toolchain).

What did you expect to happen?

Page renders without error.

Reproduction URL

https://jsfiddle.net/c4jdospL/

How to reproduce?

  1. Go to the reproduction URL
  2. Execute
  3. Look at the console

Flavour

UMD

Areas

SPA Mode

Platforms/Browsers

No response

Quasar info output

Relevant log output

Additional context

No response

Workaround

Use the dev build instead of the prod build:

<script src="https://cdn.jsdelivr.net/npm/quasar@2.19.2/dist/quasar.umd.js"></script>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions