Skip to content

Cannot serve prerendered routes with input params. #242

@cacalo

Description

@cacalo

Describe the bug
Edge function crashed when trying to access routes with params (i.e: user/:userId). The crash log says: "Error: Reading or writing files with Edge Functions is not supported yet. Visit https://ntl.fyi/edge-functions-filesystem to learn more and tell us about your use cases for file system access.".
All other routes that not include params, (common routes and child routes without params) work as intended.
This regression breaks my entire site as now users cannot verify their account as it is done by a path with params (path: 'activate/:token').

To Reproduce
Steps to reproduce the behavior:

  1. Create a component.
  2. Asign it a route with params. (user/:userId). It dosn't matter if you consume the param or if you have withComponentInputBinding(), it always fails.
  3. Access the route directly with the url (not using the site's navigation).
  4. See error.

Expected behavior
The server should not crash and I should be directed to the component within user:userId.

Versions

  • Angular : 19.0.6
  • @netlify/angular-runtime: 2.2.1.
  • I did not opt-in to the new render engine and I included netlifyCommonEngineHandler() on my server.ts.

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