Skip to content

Clicking hydra url that uses P5 gives error on page load #311

Description

@tmhglnd

If I copy/paste the url of any of the examples from the P5 library and go to that page the first time the visuals don't work and the following error is printed:

Cannot read properties of undefined (reading 'style')

After manually evaluating the examples do work, so it seems the issue has to do with maybe some order of operations issue when the page is loaded and the code is auto-evaluated.

I tried a few browsers and it seems this issue happens for me in Brave and Arc. It seems to work fine in Chrome, Firefox and Safari.

It's not a big deal but just wanted to mention it anyways.

You can try with this link from the first P5 example

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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