Unexpected token C in JSON at position 0 // NyanCat example

I’m trying to load the library.swf from (NyanCat example) and i’m getting this error:

image
image

There is code:

Assets.loadLibrary('assets/library.swf').onComplete(console.log)

I’m using next.js

I believe that sample relies upon Webpack to perform a transformation so that the SWF is converted during compile-time into a JSON file and image assets for use at runtime. Are you using Webpack?