Skip to content

WASM Splitting issue using #[lazy_routes] #4223

@davidcpp-ython

Description

@davidcpp-ython

Describe the bug
Hello. I started implementing lazy_routes into my app, but I am encountering this OS error that states :

0: Error emitting Chunk { splits: ["lazy_admin_view_5754084777364687109", "lazy_documents_view_18258890327090950471", "lazy_financial_reporting_compliance_documentation_viewer_view_10606121879465236070", "lazy_user_management_administration_dashboard_view_12859904693686961530"], hash: "" } at /Users/davidilasi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cargo-leptos-0.2.42/src/wasm_split_tools/emit.rs:905:43
   1: File name too long (os error 63)

This happens particularly on release mode (while working on ARM Mac, not sure if this really helps).

Here is a demo app I created that simulates the environment and how it fails: https://github.com/davidcpp-ython/issue-leptos-wasm-split

Next Steps

  • I will make a PR
  • I would like to make a PR, but need help getting started
  • I want someone else to take the time to fix this
  • This is a low priority for me and is just shared for your information
    Additional context
    Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions