Unable to build the example edge-middleware/redirects-bloom-filter #78687
Answered
by
icyJoseph
rafalotufo
asked this question in
Help
-
SummaryI checked out the code, then: I get the error: Additional informationnpm --version
10.5.0
node --version
v18.20.2ExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
icyJoseph
Apr 29, 2025
Replies: 1 comment 4 replies
-
|
Hi, This example makes use of an escape-hatch, https://nextjs.org/docs/messages/edge-dynamic-code-evaluation, which you can find in the middleware file itself. unstable_allowDynamic: [
'**/node_modules/.pnpm/lodash@*/node_modules/lodash/lodash.js',
'**/node_modules/.pnpm/reflect-metadata@*/node_modules/reflect-metadata/Reflect.js',
],The quirk is that, the code right now, is made to work with unstable_allowDynamic: [
'**/node_modules/lodash/_root.js',
'**/node_modules/reflect-metadata/Reflect.js',
], |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
rafalotufo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Hi,
This example makes use of an escape-hatch, https://nextjs.org/docs/messages/edge-dynamic-code-evaluation, which you can find in the middleware file itself.
The quirk is that, the code right now, is made to work with
pnpm, so you, can dopnpm iand thenpnpm run build, and that'll work, or you can edit thatunstable_allowDynamicto work withnpminstead: