Just want to list this on search engines, since I couldn't find anything by searching.
If you're trying to deploy pixi and pixi/particle-emitter on Cloudflare Pages, using rollup (or Vite), you'll need to specify node 16 with a .nvmrc file or other cloudflare options.
If you run with default node 12, you will get this error:
Error: [vite]: Rollup failed to resolve import "@pixi/core" from "node_modules/@pixi/particle-emitter/lib/particle-emitter.es.js".
Just want to list this on search engines, since I couldn't find anything by searching.
If you're trying to deploy pixi and pixi/particle-emitter on Cloudflare Pages, using rollup (or Vite), you'll need to specify node 16 with a
.nvmrc
file or other cloudflare options.If you run with default node 12, you will get this error: