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
If you find a security vulnerability, do NOT open an issue. Email security@sanity.io instead.
Describe the bug
I've done npx sanity init on an existing Nextjs Typescript project. I went through with the default options and when accessing the /studio route my project explodes.
⨯ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/andrevenancio/testing/node_modules/refractor/lang/bash' imported from /Users/andrevenancio/testing/node_modules/sanity/lib/_chunks-es/_internalBrowser.mjs
Did you mean to import "refractor/lang/bash.js"?
I've consider that this might have been something wrong with my project so I've created a brand new nextjs project
npx create-next-app
Went through the default options, and then did npx sanity init.
The results are the same. When I try to access the /studio route. This fails on nextjs apps with the app router but also the pages router.
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
If you find a security vulnerability, do NOT open an issue. Email security@sanity.io instead.
Describe the bug
I've done
npx sanity init
on an existing Nextjs Typescript project. I went through with the default options and when accessing the/studio
route my project explodes.I've consider that this might have been something wrong with my project so I've created a brand new nextjs project
Went through the default options, and then did
npx sanity init
.The results are the same. When I try to access the /studio route. This fails on nextjs apps with the app router but also the pages router.
The text was updated successfully, but these errors were encountered: