Prisma webAssembly error
Hi, I was trying the prisma orm, however I am facing the following issue when I deploy my next.js site to cloudflare pages.
Any idea how can i fix this?
▲ ./node_modules/.prisma/client/query_engine_bg.wasm
07:46:33.116 ▲ Module parse failed: Unexpected character '' (1:0)
07:46:33.116 ▲ The module seem to be a WebAssembly module, but module is not flagged as WebAssembly module for webpack.
07:46:33.116 ▲ BREAKING CHANGE: Since webpack 5 WebAssembly is not enabled by default and flagged as experimental feature.
07:46:33.117 ▲ You need to enable one of the WebAssembly experiments via 'experiments.asyncWebAssembly: true' (based on async modules) or 'experiments.syncWebAssembly: true' (like webpack 4, deprecated).
07:46:33.117 ▲ For files that transpile to WebAssembly, make sure to set the module type in the 'module.rules' section of the config (e. g. 'type: "webassembly/async"').
07:46:33.117 ▲ (Source code omitted for this binary file)
07:46:33.117 ▲
07:46:33.117 ▲ Import trace for requested module: 07:46:33.117 ▲ ./node_modules/.prisma/client/query_engine_bg.wasm 07:46:33.117 ▲ ./node_modules/.prisma/client/wasm.js 07:46:33.117 ▲ ./node_modules/.prisma/client/default.js 07:46:33.117 ▲ ./node_modules/@prisma/client/default.js
07:46:33.117 ▲ Import trace for requested module: 07:46:33.117 ▲ ./node_modules/.prisma/client/query_engine_bg.wasm 07:46:33.117 ▲ ./node_modules/.prisma/client/wasm.js 07:46:33.117 ▲ ./node_modules/.prisma/client/default.js 07:46:33.117 ▲ ./node_modules/@prisma/client/default.js
0 Replies