processing / p5.js-website

New p5.js website!
http://p5js.org
MIT License
18 stars 90 forks source link

Embedded p5.js is not displayed in the local development environment. #627

Closed shibomb closed 3 weeks ago

shibomb commented 3 weeks ago

Most appropriate sections of the p5.js website?

Reference

What is your operating system?

None

Web browser and version

No response

Actual Behavior

Embedded p5.js is not displayed in the local development environment.

スクリーンショット 2024-11-03 12 57 33

console displays an error:

arc/:35 [astro-island] Error hydrating /src/components/CodeEmbed/index.jsx ReferenceError: process is not defined
    at globals.ts:17:3

Expected Behavior

Embedded p5.js is displayed in the local development environment.

Steps to reproduce

  1. in local pc, run "npm run dev" with commit: https://github.com/processing/p5.js-website/pull/622
  2. see examples of http://localhost:4321/reference/p5/arc/

Would you like to work on the issue?

I will create PR