Skip to content

[BUG]: TypeError: d.decompose is not a function  #246

@Shekhar-Zealous

Description

@Shekhar-Zealous

Describe the bug
Another issue faced while using translate. Error is displayed in console.
I have tried removing relationships, custom field plugins, custom components but still it didn't working after a lot of efforts.

To Reproduce
Steps to reproduce the behavior:

  1. Create a default English record for collection.
  2. Click on "Locale" dropdown from Action list and move to Spanish language.
  3. Then click on "Translate from another locale" from English and click "Yes, fill in" and save the record.
  4. Puff, it's gone.

Expected behavior
The page shouldn't break and translate should happen.

Screenshots

Issue_reproduce_clip.mp4

System (please complete the following information):

  • OS: Win 10
  • Browser chrome
  • Versions:
    • strapi: 4.9.0
    • strapi-plugin-translate: 1.1.5
    • provider: strapi-provider-translate-deepl@1.1.5

Plugin config
Please add your plugin config here, e.g.

module.exports = {
  translate: {
    enabled: true,
    config: {
      provider: 'deepl',
      providerOptions: {
        apiKey: '*************'
      },
      translatedFieldTypes: [
        'string',
        { type: 'text', format: 'plain' },
        { type: 'richtext', format: 'markdown' },
        'component',
        'dynamiczone',
      ],
      translateRelations: true,
    },
  },
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions