Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package path ./structure is not exported from package #172

Open
WahidN opened this issue Feb 7, 2024 · 2 comments
Open

Package path ./structure is not exported from package #172

WahidN opened this issue Feb 7, 2024 · 2 comments

Comments

@WahidN
Copy link

WahidN commented Feb 7, 2024

Describe the bug

Getting this error:
Package path ./structure is not exported from package

after adding documentInternationalization to sanity.config.ts

export default defineConfig({
  basePath: '/studio',
  projectId,
  dataset,
  schema,
  plugins: [
    deskTool(),
    // Vision lets you query your content with GROQ in the studio
    // https://www.sanity.io/docs/the-vision-plugin
    visionTool({ defaultApiVersion: apiVersion }),
    documentInternationalization({
      supportedLanguages: [
        { id: 'nl', title: 'Nederlands' },
        { id: 'en', title: 'English' },
      ],
      schemaTypes: ['question'],
    }),
  ],
})

Which versions of Sanity are you using?

3.1.4

@andrejslogins
Copy link

I'm getting the same when migrating to turborepo

@andrejslogins
Copy link

@WahidN Resolved it on my side, it was due to the fact that desk tool had been renamed to structure, had to upgrade those libraries to make it work. Feel free to check it on your side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants