-
Notifications
You must be signed in to change notification settings - Fork 19
Error: Cannot find module '../schemas' #266
Comments
I tried to run the package with the official Vercel example as well, same issue:
|
Use this line in the config:
The script is looking for the file where you run |
I added the path to the schema file as well, which now leads to:
|
@ollebergkvist I think it should be |
I got it working in my setup. const config: SanityCodegenConfig = { // NOTE: The CLI ships with a pre-configured babel config that shims out export default config; |
I'm getting this error running Next, sanity blog example with the codegen.
sanity-codegen.config.ts
Error message:
Dependencies:
The text was updated successfully, but these errors were encountered: