Search code examples
next.jstailwind-cssinternal-server-errorsanity

sanity error: Cannot read properties of undefined (reading 'config')


I've started a next.js project with sanity.io. The setup is successfully completed. Npm run dev spins out the app on localhost successfully. But the problem is when I start the sanity studio. The following err occurs.

the err while running : sanity start command

This is my package.json

package.json file


Solution

  • creating tailwind.config.js file helped me in the similar case. content can be simple as that:

    module.exports = {
      content: [],
      theme: {
        extend: {},
      },
      plugins: [],
    }