Officially there’s no ESM version of p5js.
p5js has always been a regular non-ESM frontend library.
And by the looks of that bezier-path:
Those imports are incompatible w/ browser ESM syntax b/c they’re using filenames w/o their extension!
For example, import { BezierSegment } from "./BezierSegment";
should be instead: import { BezierSegment } from "./BezierSegment.ts";
Browsers only accept the full filename, including its extension, for the keyword import
.