Webpack plugin fails in a fresh Next.js app #1367
Unanswered
holdenmatt
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I'm converting this to a discussion since I'm pretty sure this is an issue configuring As of |
Beta Was this translation helpful? Give feedback.
1 reply
-
Was this ever resolved? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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-plugin
next.config.js
file 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.
Beta Was this translation helpful? Give feedback.
All reactions