Discussions

Ask a Question
Back to All

NextJS app fails on sprig-browser init

Hey, is sprig SDK compatible with Next applications?

We get ReferenceError: window is not defined on app launch at:

next/.yarn/cache/@sprig-technologies-sprig-browser-npm-2.30.4-53b9aab37b-54d4c937fb.zip/node_modules/@sprig-technologies/sprig-browser/dist/metricsReporter-ChJRb1ed.js