Open khandakershahi opened 2 years ago
I also got the same error in sanity package. How can I resolve it?
@vaneela I changed code in .babelrc
From
{
"presets": ["@babel/preset-react"]
}
To
{
"presets": ["next/babel"]
}
actually I got this error error - ./lib/client.js:2:0 Module not found: Can't resolve '@sanity' 1 | import sanityClient from '@sanity/cli';
2 | import imageUrlBuilder from '@sanity'; 3 | 4 | export const client = sanityClient({ 5 | projectID: 'ajqd8ggi',
Import trace for requested module: ./pages/index.js
i installed babel manually with npm @babel/preset-react
Hi I got this error. I stated to follow the project yesterday. It was working fine but today when I start the project - it shows this error. I after searching in the net I got this solution on another project that I need to change the text in .babelrc.
https://github.com/sanity-io/sanity/issues/3320#issuecomment-1152964096
So what went wrong I can't figure out.
package.json
.babelrc
.eslintrc.json