Skip to content

[p5.js 2.0 Beta Bug Report]: Output a friendly error when p5 is loaded twice on a page #7687

Open
@davepagurek

Description

@davepagurek

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

2.0 beta 5

Web browser and version

Firefox

Operating system

MacOS

Steps to reproduce this

Steps:

  1. Go to the p5 website repo
  2. Switch the 2.0 branch
  3. Run npm run dev
  4. Open the reference for e.g. circle at http://localhost:4321/reference/p5/circle/

You see this error in the console
Image

Not sure what the cause is just yet. Doesn't seem to affect the examples though.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions