pixijs / particle-emitter

A particle system for PixiJS
http://pixijs.io/particle-emitter/docs
MIT License
786 stars 124 forks source link

Vite and Rollup on Cloudflare Pages Needs Node 16 to Build #166

Closed StephenHaney closed 2 years ago

StephenHaney commented 2 years ago

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".