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
But because of this it cannot be used in middleware
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 '@jitsu/js/dist/jitsu.es.js' in in '../../packages/analytics/src/index.ts'
You might want to look at next-collect. It works through middleware, and Jitsu is supported. Meanwhile, I'll check if the lib works directly, and apply the fix if necessary. The piece of code in question is never executed on in server environment
We are using Jitsu to track analytics
But because of this it cannot be used in middleware
https://github.com/jitsucom/jitsu/blob/70fdf6a5000640ba46732331f65bea46e165e153/libs/jitsu-js/src/destination-plugins/tag.ts#L59C1-L73C14
The text was updated successfully, but these errors were encountered: