framesjs/frames.js

Module not found: Can't resolve 'fs'

Closed this issue · 2 comments

I am adding frames.js to an existing Nextjs application. The app uses the "legacy" pages router.

I only did the following

$ yarn add frames.js

And then added a frame.tsx in our application with the code from https://framesjs.org/#start-with-framesjs-in-nextjs-in-two-copy-pastes.

When running I get

./src/pages/event/[slug]/frame.tsx
- info automatically enabled Fast Refresh for 1 custom loader
- wait compiling /_error (client and server)...
- wait compiling /event/[slug] (client and server)...
- error ./node_modules/next/dist/compiled/@vercel/og/index.node.js:18677:0
Module not found: Can't resolve 'fs'

https://nextjs.org/docs/messages/module-not-found

any updates on this? also running into this in an existing application...

@zherring @julien51 we have fixed the pages support, please install the latest frames.js version and follow the integration guide here. Thanks!