Open chaima-elm opened 1 year ago
write this:
import product from './product' import banner from './banner'
export const schemaTypes = [ product, banner ]
Here is what I did covert index.js to index.ts write the code of @Artemushek it solved my error.
import banner from './banner' import product from './product'
export const schemaTypes = [banner,product]
import product from './product';
import banner from './banner';
export const schemaTypes = [product, banner];
Solution adapted from https://www.sanity.io/docs/create-a-schema-and-configure-sanity-studio
i get this error in sanity when exporting schemas: SyntaxError: The requested module '/node_modules/.sanity/vite/deps/sanity.js?v=437cca74' does not provide an export named 'default'