Closed aerlaut closed 10 months ago
p5.js canvas can be inserted into page
Wrapper failed to load, throwing the error:
./node_modules/@p5-wrapper/react/dist/component/react.js Module parse failed: Identifier 'je' has already been declared (7762:41) | if (F ? k || ($ = !0, A(), k = !0) : $ = !!je.first, H = Math.max(0, Math.floor(H)), Q = Math.max(0, Math.floor(Q)), $) { | if (!re) throw new Error("First frame must include a { palette } option"); > var [je, we, fe, De, he = 8] = [ | G, | H, Import trace for requested module: [./node_modules/@p5-wrapper/react/dist/component/react.js](mailto:./node_modules/@p5-wrapper/react/dist/component/react.js) [./node_modules/@p5-wrapper/next/dist/next.js](mailto:./node_modules/@p5-wrapper/next/dist/next.js) ./components/Canvas.tsx ./app/page.tsx
@p5-wrapper/next
<NextReactP5Wrapper />
Package Version: 1.0.2 Next Version: 14.1.0
Ah, turns out this is a duplicate of: https://github.com/P5-wrapper/react/issues/314.
Expected Behavior
p5.js canvas can be inserted into page
Actual Behavior
Wrapper failed to load, throwing the error:
Steps to Reproduce the Problem
@p5-wrapper/next
<NextReactP5Wrapper />
component into pageSpecifications
Package Version: 1.0.2 Next Version: 14.1.0