frames.js: Import error
Getting this error:
Cannot find module 'frames.js/next/server' or its corresponding type declarations.ts(2307)
When doing:
export { POST } from "frames.js/next/server";
Next.js project. Anything I need to add to fix it?
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Comments: 16 (10 by maintainers)
@davidfurlong if this can help, finally found what was wrong on my end trying to run the starter example - since this is a monorepo,
yarnneeds to be ran first at the root of the repo. I noticed that running yarn first in theframesjs-starterwould installframes.jswithout building it.Since the build is done on prepublish hook, that makes sense, in other words, the example script won’t run if cloning the repo. I’d assume this is a common issue, since most wouldn’t think about moving the folder somewhere else and
git initing it as its own repo.https://github.com/framesjs/frames.js/pull/76
Here you go: