sanity-io / document-internationalization

Create unique translations of a document based on its language, joined by a shared reference document
MIT License
135 stars 39 forks source link

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

Open WahidN opened 9 months ago

WahidN commented 9 months ago

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 commented 9 months ago

I'm getting the same when migrating to turborepo

andrejslogins commented 9 months ago

@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