Skip to content

Hitting a ReferenceError in loadAndParseVirtualFilePageEntry on versions 0.4.252 and 0.4.253 #3121

@JasonObeid

Description

@JasonObeid

Hello! Wondering if you might have any thoughts on what could be happening here?

Stacktrace

ReferenceError: Cannot access 'configValuesSerialized' before initialization.
../../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]__vite@8_68f134521940ab55d10c184b450f2feb/node_modules/vike/dist/shared-server-client/page-configs/loadAndParseVirtualFilePageEntry.js:19:26 (Pse)
    const configValues = parseVirtualFileExportsPageEntry(virtualFileExportsPageEntry);
../../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]__vite@8_68f134521940ab55d10c184b450f2feb/node_modules/vike/dist/shared-server-client/page-configs/loadAndParseVirtualFilePageEntry.js:25:54 (Fse)
    const configValues = parseConfigValuesSerialized(virtualFileExportsPageEntry.configValuesSerialized);

Description

  • Some time after upgrading vike to 0.4.252 and 0.4.253, we started seeing this runtime error specifically on Safari / WebKit browsers.
  • It appears to only occur on page load -> click anchor to do client-side navigation.
  • When trying to reproduce, it happens inconsistently, maybe ~10% of the time I do the above ^.
  • It doesn't appear to be an issue during local development.

Dependency versions

  • vike: 0.4.253
  • react-streaming: 0.4.15
  • react: 19.2.3
  • react-dom: 19.2.3
  • vite: 8.0.0-beta.11 at onset (also observed later with beta.13 and beta.15)

Thanks for the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions