You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using the <InstantSearchNext> component in next.js for search, but my app won't build due to a Dynamic Code Evaluation error. I've made sure that the component has "use client" at the top and that the route segment is set to force-dynamic as per the docs.
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime
Learn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation
The error was caused by importing 'react-instantsearch/dist/es/index.js'in'./components/search/complex-doc-search/complex-doc-search.tsx'.
🔍 Steps to reproduce
I cannot share the project code as it is a private repo.
Live reproduction
cannot reproduce
💭 Expected behavior
The search should run as expected, I'm not deploying to the edge runtime, only in the nodejs runtime.
Package version
react-instantsearch 7.11.2, react-instantsearch-nextjs 0.3.3, next 14.2.4
Operating system
No response
Browser
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
🐛 Current behavior
I'm currently using the
<InstantSearchNext>
component in next.js for search, but my app won't build due to aDynamic Code Evaluation
error. I've made sure that the component has"use client"
at the top and that the route segment is set toforce-dynamic
as per the docs.Some details below:
Dependencies:
Error:
🔍 Steps to reproduce
I cannot share the project code as it is a private repo.
Live reproduction
cannot reproduce
💭 Expected behavior
The search should run as expected, I'm not deploying to the edge runtime, only in the nodejs runtime.
Package version
react-instantsearch 7.11.2, react-instantsearch-nextjs 0.3.3, next 14.2.4
Operating system
No response
Browser
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: