Bug Report
I'm trying to use Perspective in a fresh Next.js app, and neither of the documented webpack config options work, so I'm only able to use it in INLINE mode.
I've spent a few hours trying to debug unsuccessfully, so created a clean repo to reproduce the issue.
Steps to Reproduce:
- Create a fresh Next.JS app using
npx create-next-app: https://nextjs.org/docs/api-reference/create-next-app
npm install @finos/perspective @finos/perspective-webpack-plugin
- Add a minimal
next.config.js file to add new PerspectivePlugin() as a webpack plugin.
Expected Result:
Perspective should work without errors using the webpack plugin from the documentation.
Actual Result:
I get 404s for psp.async.wasm and perspective.wasm.worker.js and a slew of errors.

Environment:

Additional Context:
I created a clean repo here that reproduces the error:
https://github.com/holdenmatt/perspective-nextjs/blob/main/next.config.js
Appreciate any suggestions or fixes for this.
Bug Report
I'm trying to use Perspective in a fresh Next.js app, and neither of the documented webpack config options work, so I'm only able to use it in INLINE mode.
I've spent a few hours trying to debug unsuccessfully, so created a clean repo to reproduce the issue.
Steps to Reproduce:
npx create-next-app: https://nextjs.org/docs/api-reference/create-next-appnpm install @finos/perspective @finos/perspective-webpack-pluginnext.config.jsfile to addnew PerspectivePlugin()as a webpack plugin.Expected Result:
Perspective should work without errors using the webpack plugin from the documentation.
Actual Result:
I get 404s for psp.async.wasm and perspective.wasm.worker.js and a slew of errors.
Environment:
Additional Context:
I created a clean repo here that reproduces the error:
https://github.com/holdenmatt/perspective-nextjs/blob/main/next.config.js
Appreciate any suggestions or fixes for this.