Fekide / strapi-plugin-translate

Strapi plugin for automated translations using different Translate Providers
https://market.strapi.io/plugins/strapi-plugin-translate
MIT License
42 stars 16 forks source link

[BUG]: Can't build strapi admin panel anymore #378

Closed bitmonti closed 8 months ago

bitmonti commented 8 months ago

Describe the bug Opened issue #18711

To Reproduce Steps to reproduce the behavior:

Git repository: link

  1. npm install
  2. npm run build

Stackblitz: link

  1. npm rebuild
  2. npm run build

System:

Ubuntu 22.04.3 LTS node: v18.17.1 npm: v9.6.7

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

module.exports = {
    translate: {
      enabled: true,
      config: {
        provider: "deepl",
        providerOptions: {
          apiKey: env("DEEPL_API_PROFESSIONAL"),
          apiUrl: env("DEEPL_API_URL"),
        },
      },
    },
}
marioguima commented 8 months ago

First, I want to thank you for your excellent work. This plugin saves my life every day by saving time and effort. Congratulations again.

Unfortunately, I got the same error. If I uninstall the plugin, the admin compiles correctly How the @bitmonti commented on issues #18711

esiao commented 8 months ago

The issue is likely on this import https://github.com/Fekide/strapi-plugin-translate/blob/60b42c5404203bfad610ba559780c71d0a6421dc/plugin/admin/src/components/CMEditViewTranslateLocale/index.js#L51

layaxx commented 8 months ago

Hey guys, thanks for raising this Issue and for providing a reproduction repo. I think @esiao is correct, although this is not the only import from the i18n plugin package causing this problem. The problem is not even that those files are missing, they are just not marked as being exported in the package.json file. I will look into possible solutions, but can unfortunately not give you any timeframe right now.

fekide-bot commented 8 months ago

:tada: This issue has been resolved in version 1.0.11 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

fekide-bot commented 8 months ago

:tada: This issue has been resolved in version 1.2.4 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

fekide-bot commented 8 months ago

:tada: This issue has been resolved in version 1.1.12 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket: