Skip to content

[bug] workerd - Disallowed operation called within global scope #483

@geemanjs

Description

@geemanjs

Hey 👋

Thanks for maintaining this library.

Probably just what you wanted after the most recent release - another workerd issue 👀. Albeit this one I think is a bit simpler.

When running in a cloudflare worker / wrangler - I get the following:

Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope

Having debugged the issue it spans from this line here where the AbortController is created in the global scope:
https://github.com/bvaughn/react-resizable-panels/blob/main/packages/react-resizable-panels/src/PanelResizeHandleRegistry.ts#L303

I think it will be a pretty simple fix (which is why I haven't shared a Minimal reproduction or more details about my setup). I'll take a look and see if I can get a PR together later to fix - but thought i'd raise in case anyone else stumbled upon it.

James

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions