@intlayer/docs 7.0.8 → 7.0.9-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +4 -4
  2. package/dist/cjs/generated/frequentQuestions.entry.cjs +19 -0
  3. package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
  4. package/dist/esm/generated/frequentQuestions.entry.mjs +19 -0
  5. package/dist/esm/generated/frequentQuestions.entry.mjs.map +1 -1
  6. package/dist/types/generated/frequentQuestions.entry.d.ts +1 -0
  7. package/dist/types/generated/frequentQuestions.entry.d.ts.map +1 -1
  8. package/docs/ar/readme.md +3 -3
  9. package/docs/de/readme.md +5 -5
  10. package/docs/en/readme.md +6 -6
  11. package/docs/en-GB/readme.md +3 -3
  12. package/docs/es/readme.md +3 -3
  13. package/docs/fr/readme.md +3 -3
  14. package/docs/hi/readme.md +3 -3
  15. package/docs/id/readme.md +3 -3
  16. package/docs/it/readme.md +3 -3
  17. package/docs/ja/readme.md +3 -3
  18. package/docs/ko/readme.md +3 -3
  19. package/docs/pl/intlayer_with_nextjs_15.md +36 -37
  20. package/docs/pl/readme.md +3 -3
  21. package/docs/pt/readme.md +3 -3
  22. package/docs/ru/readme.md +3 -3
  23. package/docs/tr/readme.md +3 -3
  24. package/docs/vi/readme.md +3 -3
  25. package/docs/zh/readme.md +3 -3
  26. package/frequent_questions/ar/package_version_error.md +132 -0
  27. package/frequent_questions/de/package_version_error.md +132 -0
  28. package/frequent_questions/en/package_version_error.md +153 -0
  29. package/frequent_questions/en-GB/package_version_error.md +132 -0
  30. package/frequent_questions/es/package_version_error.md +132 -0
  31. package/frequent_questions/fr/package_version_error.md +132 -0
  32. package/frequent_questions/hi/package_version_error.md +132 -0
  33. package/frequent_questions/id/package_version_error.md +132 -0
  34. package/frequent_questions/it/package_version_error.md +132 -0
  35. package/frequent_questions/ja/package_version_error.md +132 -0
  36. package/frequent_questions/ko/package_version_error.md +132 -0
  37. package/frequent_questions/pl/package_version_error.md +132 -0
  38. package/frequent_questions/pt/package_version_error.md +132 -0
  39. package/frequent_questions/ru/package_version_error.md +132 -0
  40. package/frequent_questions/tr/package_version_error.md +132 -0
  41. package/frequent_questions/vi/package_version_error.md +132 -0
  42. package/frequent_questions/zh/package_version_error.md +132 -0
  43. package/package.json +14 -14
  44. package/src/generated/frequentQuestions.entry.ts +19 -0
@@ -0,0 +1,153 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: I get an error related to sub-packages @intlayer/*
5
+ description: Fix error related to sub-packages @intlayer/*.
6
+ keywords:
7
+ - @intlayer/*
8
+ - sub-packages
9
+ - intlayer
10
+ slugs:
11
+ - frequent-questions
12
+ - package-version-error
13
+ ---
14
+
15
+ # I get an error related to sub-packages `@intlayer/*`
16
+
17
+ This problem usually occurs after an update of the Intlayer packages.
18
+
19
+ Example of error message:
20
+
21
+ ```bash
22
+ Error: Cannot find module '@intlayer/types'
23
+ ```
24
+
25
+ ```bash
26
+ TypeError: (0 , __intlayer_config_client.colorize) is not a function
27
+
28
+ at import { colorize } from '@intlayer/config';
29
+ ```
30
+
31
+ ```bash
32
+ ✖ ERROR No matching export in "node_modules/@intlayer/config/dist/esm/client.mjs" for import "clearModuleCache"
33
+
34
+ node_modules/@intlayer/unmerged-dictionaries-entry/dist/esm/index.mjs:3:9:
35
+ 3 | import { clearModuleCache, configESMxCJSRequire } from "@intlayer/config";
36
+ | ~~~~~~~~~~~~~~~~
37
+
38
+ ✖ ERROR No matching export in "node_modules/@intlayer/config/dist/esm/client.mjs" for import "configESMxCJSRequire"
39
+
40
+ node_modules/@intlayer/unmerged-dictionaries-entry/dist/esm/index.mjs:3:27:
41
+ 3 | import { clearModuleCache, configESMxCJSRequire } from "@intlayer/config";
42
+ | ~~~~~~~~~~~~~~~~~~~~
43
+ ```
44
+
45
+ ## Reason
46
+
47
+ Base packages as `intlayer`, `react-intlayer`, `react-native-intlayer`, `vue-intlayer` are reusing the same sub-packages as `@intlayer/config`, `@intlayer/core`, `@intlayer/types` to avoid code duplication.
48
+
49
+ Between two versions, the exports of the sub-packages are not guaranteed to be the same. To limit this problem, intlayer pins the version of the sub-packages to the version of the main package.
50
+
51
+ > Ex: `intlayer@1.0.0` uses `@intlayer/config@1.0.0`, `@intlayer/core@1.0.0`, `@intlayer/types@1.0.0`
52
+
53
+ > (Except for `@intlayer/swc`), `@intlayer/*` sub-packages are not meant to be used directly. So we recommend to do not install them directly.
54
+
55
+ ## Resolution
56
+
57
+ 1. Ensure the versions of the main package and the sub-packages are the same.
58
+
59
+ ```json5
60
+ {
61
+ "dependencies": {
62
+ "intlayer": "7.0.1",
63
+ "react-intlayer": "7.0.0", // Wrong version, it should be 7.0.1
64
+ },
65
+ "devDependencies": {
66
+ "intlayer-editor": "7.0.1",
67
+ },
68
+ }
69
+ ```
70
+
71
+ 2. Try to remove the lockfile and node_modules folder and reinstall the dependencies.
72
+
73
+ Sometimes, the package manager keep an old version of the sub-packages in the lockfile in cache. To fix this, you can try to remove the lockfile and node_modules folder and reinstall the dependencies.
74
+
75
+ ```bash
76
+ rm -rf package-lock.json node_modules
77
+
78
+ npm install # or yarn install or pnpm install or bun pm install
79
+ ```
80
+
81
+ 3. Check global installation
82
+
83
+ We recommend to install `intlayer` or `intlayer-cli` globally to access the CLI commands. If the global version is not the same as the local version, the package manager may consider the wrong version.
84
+
85
+ **Check if a package is installed globally**
86
+
87
+ ```bash
88
+ npm list -g --depth=3 | grep intlayer
89
+ ```
90
+
91
+ ```bash
92
+ yarn global list --depth=3 | grep intlayer
93
+ ```
94
+
95
+ ```bash
96
+ pnpm list -g --depth=3 | grep intlayer
97
+ ```
98
+
99
+ ```bash
100
+ bun pm ls -g --depth=3 | grep intlayer
101
+ ```
102
+
103
+ **Fix potential global dependency conflicts**
104
+
105
+ ```bash
106
+ npm uninstall -g intlayer intlayer-cli
107
+ ```
108
+
109
+ ```bash
110
+ yarn global remove intlayer intlayer-cli
111
+ ```
112
+
113
+ ```bash
114
+ pnpm remove -g intlayer intlayer-cli
115
+ ```
116
+
117
+ ```bash
118
+ bun pm rm -g intlayer intlayer-cli
119
+ ```
120
+
121
+ 5. Try cleaning the cache
122
+
123
+ For some environments as docker, github actions, or web hosting platforms as Vercel, a cache can be present. You can try to clean the cache and retry the installation.
124
+
125
+ You can also try to clean the cache of your package manager with the following command:
126
+
127
+ ```bash
128
+ npm cache clean --force
129
+ ```
130
+
131
+ ```bash
132
+ yarn cache clean
133
+ ```
134
+
135
+ ```bash
136
+ pnpm cache clean
137
+ ```
138
+
139
+ ```bash
140
+ bun pm cache clean
141
+ ```
142
+
143
+ 6. Try removing the `.intlayer` folder
144
+
145
+ Intlayer cache a bundled version of his version itself in the `.intlayer/cache` folder.
146
+
147
+ This cache can be corrupted if the version of intlayer is not the same as the version of the cached version.
148
+
149
+ You can try to remove the `.intlayer` folder and retry the build.
150
+
151
+ ```bash
152
+ rm -rf .intlayer
153
+ ```
@@ -0,0 +1,132 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: I get an error related to sub-packages @intlayer/*
5
+ description: Fix error related to sub-packages @intlayer/*.
6
+ keywords:
7
+ - @intlayer/*
8
+ - sub-packages
9
+ - intlayer
10
+ slugs:
11
+ - frequent-questions
12
+ - package-version-error
13
+ ---
14
+
15
+ # I get an error related to sub-packages `@intlayer/*`
16
+
17
+ This issue usually arises after updating the Intlayer packages.
18
+
19
+ Example of error message:
20
+
21
+ ```bash
22
+ Error: Cannot find module '@intlayer/types'
23
+ ```
24
+
25
+ ```bash
26
+ TypeError: (0 , __intlayer_config_client.colorize) is not a function
27
+
28
+ at import { colorize } from '@intlayer/config';
29
+ ```
30
+
31
+ ```bash
32
+ ✖ ERROR No matching export in "node_modules/@intlayer/config/dist/esm/client.mjs" for import "clearModuleCache"
33
+
34
+ node_modules/@intlayer/unmerged-dictionaries-entry/dist/esm/index.mjs:3:9:
35
+ 3 | import { clearModuleCache, configESMxCJSRequire } from "@intlayer/config";
36
+ | ~~~~~~~~~~~~~~~~
37
+
38
+ ✖ ERROR No matching export in "node_modules/@intlayer/config/dist/esm/client.mjs" for import "configESMxCJSRequire"
39
+
40
+ node_modules/@intlayer/unmerged-dictionaries-entry/dist/esm/index.mjs:3:27:
41
+ 3 | import { clearModuleCache, configESMxCJSRequire } from "@intlayer/config";
42
+ | ~~~~~~~~~~~~~~~~~~~~
43
+ ```
44
+
45
+ ## Reason
46
+
47
+ Base packages such as `intlayer`, `react-intlayer`, `react-native-intlayer`, `vue-intlayer` reuse the same sub-packages like `@intlayer/config`, `@intlayer/core`, `@intlayer/types` to avoid code duplication.
48
+
49
+ Between two versions, the exports of the sub-packages are not guaranteed to be the same. To limit this problem, intlayer pins the version of the sub-packages to the version of the main package.
50
+
51
+ > Ex: `intlayer@1.0.0` uses `@intlayer/config@1.0.0`, `@intlayer/core@1.0.0`, `@intlayer/types@1.0.0`
52
+
53
+ > (Except for `@intlayer/swc`), `@intlayer/*` sub-packages are not meant to be used directly. Therefore, we recommend not installing them directly.
54
+
55
+ ## Resolution
56
+
57
+ 1. Ensure the versions of the main package and the sub-packages are the same.
58
+
59
+ ```json5
60
+ {
61
+ "dependencies": {
62
+ "intlayer": "7.0.1",
63
+ "react-intlayer": "7.0.0", // Incorrect version, it should be 7.0.1
64
+ },
65
+ "devDependencies": {
66
+ "intlayer-editor": "7.0.1",
67
+ },
68
+ }
69
+ ```
70
+
71
+ 2. Try removing the lockfile and node_modules folder, then reinstall the dependencies.
72
+
73
+ Sometimes, the package manager retains an old version of the sub-packages in the lockfile cache. To resolve this, you can try removing the lockfile and node_modules folder, then reinstall the dependencies.
74
+
75
+ ```bash
76
+ rm -rf package-lock.json node_modules
77
+ npm install
78
+ ```
79
+
80
+ 3. Check global installation
81
+
82
+ We recommend installing `intlayer` or `intlayer-cli` globally to access the CLI commands. If the global version differs from the local version, the package manager may use the incorrect version.
83
+
84
+ **Check if a package is installed globally**
85
+
86
+ ```bash
87
+ npm list -g --depth=0
88
+ ```
89
+
90
+ ```bash
91
+ npm list -g --depth=0 | grep intlayer
92
+ ```
93
+
94
+ ```bash
95
+ yarn global list
96
+ ```
97
+
98
+ ```bash
99
+ pnpm list -g --depth=0
100
+ ```
101
+
102
+ **Fix potential global dependency conflicts**
103
+
104
+ ```bash
105
+ npm uninstall -g intlayer intlayer-cli
106
+ ```
107
+
108
+ ```bash
109
+ yarn global remove intlayer intlayer-cli
110
+ ```
111
+
112
+ ```bash
113
+ pnpm remove -g intlayer intlayer-cli
114
+ ```
115
+
116
+ 5. Try cleaning the cache
117
+
118
+ In some environments such as Docker, GitHub Actions, or web hosting platforms like Vercel, a cache may be present. You can try clearing the cache and retry the installation.
119
+
120
+ You can also try clearing the cache of your package manager with the following command:
121
+
122
+ ```bash
123
+ npm cache clean --force
124
+ ```
125
+
126
+ ```bash
127
+ yarn cache clean
128
+ ```
129
+
130
+ ```bash
131
+ pnpm cache clean
132
+ ```
@@ -0,0 +1,132 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: Obtengo un error relacionado con los sub-paquetes `@intlayer/*`
5
+ description: Soluciona el error relacionado con los sub-paquetes `@intlayer/*`.
6
+ keywords:
7
+ - @intlayer/*
8
+ - sub-paquetes
9
+ - intlayer
10
+ slugs:
11
+ - frequent-questions
12
+ - package-version-error
13
+ ---
14
+
15
+ # Obtengo un error relacionado con los sub-paquetes `@intlayer/*`
16
+
17
+ Este problema suele ocurrir después de una actualización de los paquetes de Intlayer.
18
+
19
+ Ejemplo de mensaje de error:
20
+
21
+ ```bash
22
+ Error: Cannot find module '@intlayer/types'
23
+ ```
24
+
25
+ ```bash
26
+ TypeError: (0 , __intlayer_config_client.colorize) is not a function
27
+
28
+ at import { colorize } from '@intlayer/config';
29
+ ```
30
+
31
+ ```bash
32
+ ✖ ERROR No matching export in "node_modules/@intlayer/config/dist/esm/client.mjs" for import "clearModuleCache"
33
+
34
+ node_modules/@intlayer/unmerged-dictionaries-entry/dist/esm/index.mjs:3:9:
35
+ 3 | import { clearModuleCache, configESMxCJSRequire } from "@intlayer/config";
36
+ | ~~~~~~~~~~~~~~~~
37
+
38
+ ✖ ERROR No matching export in "node_modules/@intlayer/config/dist/esm/client.mjs" for import "configESMxCJSRequire"
39
+
40
+ node_modules/@intlayer/unmerged-dictionaries-entry/dist/esm/index.mjs:3:27:
41
+ 3 | import { clearModuleCache, configESMxCJSRequire } from "@intlayer/config";
42
+ | ~~~~~~~~~~~~~~~~~~~~
43
+ ```
44
+
45
+ ## Razón
46
+
47
+ Los paquetes base como `intlayer`, `react-intlayer`, `react-native-intlayer`, `vue-intlayer` están reutilizando los mismos sub-paquetes como `@intlayer/config`, `@intlayer/core`, `@intlayer/types` para evitar la duplicación de código.
48
+
49
+ Entre dos versiones, no se garantiza que las exportaciones de los sub-paquetes sean las mismas. Para limitar este problema, intlayer fija la versión de los sub-paquetes a la versión del paquete principal.
50
+
51
+ > Ej: `intlayer@1.0.0` usa `@intlayer/config@1.0.0`, `@intlayer/core@1.0.0`, `@intlayer/types@1.0.0`
52
+
53
+ > (Excepto para `@intlayer/swc`), los sub-paquetes `@intlayer/*` no están destinados a ser usados directamente. Por lo tanto, recomendamos no instalarlos directamente.
54
+
55
+ ## Resolución
56
+
57
+ 1. Asegúrate de que las versiones del paquete principal y de los sub-paquetes sean las mismas.
58
+
59
+ ```json5
60
+ {
61
+ "dependencies": {
62
+ "intlayer": "7.0.1",
63
+ "react-intlayer": "7.0.0", // Versión incorrecta, debería ser 7.0.1
64
+ },
65
+ "devDependencies": {
66
+ "intlayer-editor": "7.0.1",
67
+ },
68
+ }
69
+ ```
70
+
71
+ 2. Intenta eliminar el lockfile y la carpeta node_modules y reinstalar las dependencias.
72
+
73
+ A veces, el gestor de paquetes mantiene una versión antigua de los sub-paquetes en el lockfile o en la caché. Para solucionar esto, puedes intentar eliminar el lockfile y la carpeta node_modules y reinstalar las dependencias.
74
+
75
+ ```bash
76
+ rm -rf package-lock.json node_modules
77
+ npm install
78
+ ```
79
+
80
+ 3. Verifica la instalación global
81
+
82
+ Recomendamos instalar `intlayer` o `intlayer-cli` globalmente para acceder a los comandos CLI. Si la versión global no es la misma que la versión local, el gestor de paquetes puede considerar la versión incorrecta.
83
+
84
+ **Verificar si un paquete está instalado globalmente**
85
+
86
+ ```bash
87
+ npm list -g --depth=0
88
+ ```
89
+
90
+ ```bash
91
+ npm list -g --depth=0 | grep intlayer
92
+ ```
93
+
94
+ ```bash
95
+ yarn global list
96
+ ```
97
+
98
+ ```bash
99
+ pnpm list -g --depth=0
100
+ ```
101
+
102
+ **Soluciona posibles conflictos de dependencias globales**
103
+
104
+ ```bash
105
+ npm uninstall -g intlayer intlayer-cli
106
+ ```
107
+
108
+ ```bash
109
+ yarn global remove intlayer intlayer-cli
110
+ ```
111
+
112
+ ```bash
113
+ pnpm remove -g intlayer intlayer-cli
114
+ ```
115
+
116
+ 5. Intenta limpiar la caché
117
+
118
+ En algunos entornos como docker, github actions o plataformas de hosting web como Vercel, puede existir una caché. Puedes intentar limpiar la caché y volver a intentar la instalación.
119
+
120
+ También puedes intentar limpiar la caché de tu gestor de paquetes con el siguiente comando:
121
+
122
+ ```bash
123
+ npm cache clean --force
124
+ ```
125
+
126
+ ```bash
127
+ yarn cache clean
128
+ ```
129
+
130
+ ```bash
131
+ pnpm cache clean
132
+ ```
@@ -0,0 +1,132 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: Je rencontre une erreur liée aux sous-paquets `@intlayer/*`
5
+ description: Résoudre une erreur liée aux sous-paquets `@intlayer/*`.
6
+ keywords:
7
+ - @intlayer/*
8
+ - sous-paquets
9
+ - intlayer
10
+ slugs:
11
+ - frequent-questions
12
+ - package-version-error
13
+ ---
14
+
15
+ # Je rencontre une erreur liée aux sous-paquets `@intlayer/*`
16
+
17
+ Ce problème survient généralement après une mise à jour des paquets Intlayer.
18
+
19
+ Exemple de message d'erreur :
20
+
21
+ ```bash
22
+ Error: Cannot find module '@intlayer/types'
23
+ ```
24
+
25
+ ```bash
26
+ TypeError: (0 , __intlayer_config_client.colorize) is not a function
27
+
28
+ at import { colorize } from '@intlayer/config';
29
+ ```
30
+
31
+ ```bash
32
+ ✖ ERROR No matching export in "node_modules/@intlayer/config/dist/esm/client.mjs" for import "clearModuleCache"
33
+
34
+ node_modules/@intlayer/unmerged-dictionaries-entry/dist/esm/index.mjs:3:9:
35
+ 3 | import { clearModuleCache, configESMxCJSRequire } from "@intlayer/config";
36
+ | ~~~~~~~~~~~~~~~~
37
+
38
+ ✖ ERREUR Aucune exportation correspondante dans "node_modules/@intlayer/config/dist/esm/client.mjs" pour l'import "configESMxCJSRequire"
39
+
40
+ node_modules/@intlayer/unmerged-dictionaries-entry/dist/esm/index.mjs:3:27:
41
+ 3 | import { clearModuleCache, configESMxCJSRequire } from "@intlayer/config";
42
+ | ~~~~~~~~~~~~~~~~~~~~
43
+ ```
44
+
45
+ ## Raison
46
+
47
+ Les paquets de base tels que `intlayer`, `react-intlayer`, `react-native-intlayer`, `vue-intlayer` réutilisent les mêmes sous-paquets que `@intlayer/config`, `@intlayer/core`, `@intlayer/types` afin d'éviter la duplication de code.
48
+
49
+ Entre deux versions, les exports des sous-paquets ne sont pas garantis d’être les mêmes. Pour limiter ce problème, intlayer fixe la version des sous-paquets à la version du paquet principal.
50
+
51
+ > Ex : `intlayer@1.0.0` utilise `@intlayer/config@1.0.0`, `@intlayer/core@1.0.0`, `@intlayer/types@1.0.0`
52
+
53
+ > (À l’exception de `@intlayer/swc`), les sous-paquets `@intlayer/*` ne sont pas destinés à être utilisés directement. Nous recommandons donc de ne pas les installer directement.
54
+
55
+ ## Résolution
56
+
57
+ 1. Assurez-vous que les versions du paquet principal et des sous-paquets sont identiques.
58
+
59
+ ```json5
60
+ {
61
+ "dependencies": {
62
+ "intlayer": "7.0.1",
63
+ "react-intlayer": "7.0.0", // Mauvaise version, cela devrait être 7.0.1
64
+ },
65
+ "devDependencies": {
66
+ "intlayer-editor": "7.0.1",
67
+ },
68
+ }
69
+ ```
70
+
71
+ 2. Essayez de supprimer le fichier de verrouillage (lockfile) et le dossier node_modules, puis réinstallez les dépendances.
72
+
73
+ Parfois, le gestionnaire de paquets conserve une ancienne version des sous-paquets dans le fichier de verrouillage en cache. Pour résoudre ce problème, vous pouvez essayer de supprimer le fichier de verrouillage et le dossier node_modules, puis réinstaller les dépendances.
74
+
75
+ ```bash
76
+ rm -rf package-lock.json node_modules
77
+ npm install
78
+ ```
79
+
80
+ 3. Vérifiez l'installation globale
81
+
82
+ Nous recommandons d’installer `intlayer` ou `intlayer-cli` globalement pour accéder aux commandes CLI. Si la version globale n’est pas la même que la version locale, le gestionnaire de paquets peut considérer la mauvaise version.
83
+
84
+ **Vérifier si un paquet est installé globalement**
85
+
86
+ ```bash
87
+ npm list -g --depth=0
88
+ ```
89
+
90
+ ```bash
91
+ npm list -g --depth=0 | grep intlayer
92
+ ```
93
+
94
+ ```bash
95
+ yarn global list
96
+ ```
97
+
98
+ ```bash
99
+ pnpm list -g --depth=0
100
+ ```
101
+
102
+ **Résoudre les conflits potentiels de dépendances globales**
103
+
104
+ ```bash
105
+ npm uninstall -g intlayer intlayer-cli
106
+ ```
107
+
108
+ ```bash
109
+ yarn global remove intlayer intlayer-cli
110
+ ```
111
+
112
+ ```bash
113
+ pnpm remove -g intlayer intlayer-cli
114
+ ```
115
+
116
+ 5. Essayez de nettoyer le cache
117
+
118
+ Pour certains environnements comme docker, github actions, ou les plateformes d’hébergement web comme Vercel, un cache peut être présent. Vous pouvez essayer de nettoyer le cache et de réessayer l’installation.
119
+
120
+ Vous pouvez également essayer de nettoyer le cache de votre gestionnaire de paquets avec la commande suivante :
121
+
122
+ ```bash
123
+ npm cache clean --force
124
+ ```
125
+
126
+ ```bash
127
+ yarn cache clean
128
+ ```
129
+
130
+ ```bash
131
+ pnpm cache clean
132
+ ```
@@ -0,0 +1,132 @@
1
+ ---
2
+ createdAt: 2025-05-20
3
+ updatedAt: 2025-06-29
4
+ title: मुझे सब-पैकेजेस @intlayer/* से संबंधित त्रुटि मिलती है
5
+ description: सब-पैकेजेस @intlayer/* से संबंधित त्रुटि को ठीक करें।
6
+ keywords:
7
+ - @intlayer/*
8
+ - सब-पैकेजेस
9
+ - intlayer
10
+ slugs:
11
+ - frequent-questions
12
+ - package-version-error
13
+ ---
14
+
15
+ # मुझे सब-पैकेजेस `@intlayer/*` से संबंधित त्रुटि मिलती है
16
+
17
+ यह समस्या आमतौर पर Intlayer पैकेजेस के अपडेट के बाद होती है।
18
+
19
+ त्रुटि संदेश का उदाहरण:
20
+
21
+ ```bash
22
+ Error: Cannot find module '@intlayer/types'
23
+ ```
24
+
25
+ ```bash
26
+ TypeError: (0 , __intlayer_config_client.colorize) is not a function
27
+
28
+ at import { colorize } from '@intlayer/config';
29
+ ```
30
+
31
+ ```bash
32
+ ✖ ERROR No matching export in "node_modules/@intlayer/config/dist/esm/client.mjs" for import "clearModuleCache"
33
+
34
+ node_modules/@intlayer/unmerged-dictionaries-entry/dist/esm/index.mjs:3:9:
35
+ 3 | import { clearModuleCache, configESMxCJSRequire } from "@intlayer/config";
36
+ | ~~~~~~~~~~~~~~~~
37
+
38
+ ✖ ERROR No matching export in "node_modules/@intlayer/config/dist/esm/client.mjs" for import "configESMxCJSRequire"
39
+
40
+ node_modules/@intlayer/unmerged-dictionaries-entry/dist/esm/index.mjs:3:27:
41
+ 3 | import { clearModuleCache, configESMxCJSRequire } from "@intlayer/config";
42
+ | ~~~~~~~~~~~~~~~~~~~~
43
+ ```
44
+
45
+ ## कारण
46
+
47
+ बेस पैकेज जैसे `intlayer`, `react-intlayer`, `react-native-intlayer`, `vue-intlayer` कोड डुप्लिकेशन से बचने के लिए वही सब-पैकेजेस जैसे `@intlayer/config`, `@intlayer/core`, `@intlayer/types` का पुनः उपयोग कर रहे हैं।
48
+
49
+ दो संस्करणों के बीच, सब-पैकेजेस के एक्सपोर्ट्स समान होने की गारंटी नहीं होती है। इस समस्या को सीमित करने के लिए, intlayer मुख्य पैकेज के संस्करण के अनुसार सब-पैकेजेस के संस्करण को पिन करता है।
50
+
51
+ > उदाहरण: `intlayer@1.0.0` उपयोग करता है `@intlayer/config@1.0.0`, `@intlayer/core@1.0.0`, `@intlayer/types@1.0.0`
52
+
53
+ > (`@intlayer/swc` को छोड़कर), `@intlayer/*` सब-पैकेजेस को सीधे उपयोग करने के लिए नहीं बनाया गया है। इसलिए हम सुझाव देते हैं कि इन्हें सीधे इंस्टॉल न करें।
54
+
55
+ ## समाधान
56
+
57
+ 1. सुनिश्चित करें कि मुख्य पैकेज और सब-पैकेजेस के संस्करण समान हों।
58
+
59
+ ```json5
60
+ {
61
+ "dependencies": {
62
+ "intlayer": "7.0.1",
63
+ "react-intlayer": "7.0.0", // गलत संस्करण, इसे 7.0.1 होना चाहिए
64
+ },
65
+ "devDependencies": {
66
+ "intlayer-editor": "7.0.1",
67
+ },
68
+ }
69
+ ```
70
+
71
+ 2. लॉकफाइल और node_modules फ़ोल्डर को हटाने और निर्भरताओं को पुनः इंस्टॉल करने का प्रयास करें।
72
+
73
+ कभी-कभी, पैकेज मैनेजर लॉकफाइल में सब-पैकेजेस के पुराने संस्करण को कैश में रखता है। इसे ठीक करने के लिए, आप लॉकफाइल और node_modules फ़ोल्डर को हटाने और निर्भरताओं को पुनः इंस्टॉल करने का प्रयास कर सकते हैं।
74
+
75
+ ```bash
76
+ rm -rf package-lock.json node_modules
77
+ npm install
78
+ ```
79
+
80
+ 3. वैश्विक इंस्टॉलेशन की जांच करें
81
+
82
+ CLI कमांड्स तक पहुँचने के लिए हम सुझाव देते हैं कि `intlayer` या `intlayer-cli` को वैश्विक रूप से इंस्टॉल करें। यदि वैश्विक संस्करण स्थानीय संस्करण के समान नहीं है, तो पैकेज मैनेजर गलत संस्करण मान सकता है।
83
+
84
+ **जांचें कि कोई पैकेज वैश्विक रूप से इंस्टॉल है या नहीं**
85
+
86
+ ```bash
87
+ npm list -g --depth=0
88
+ ```
89
+
90
+ ```bash
91
+ npm list -g --depth=0 | grep intlayer
92
+ ```
93
+
94
+ ```bash
95
+ yarn global list
96
+ ```
97
+
98
+ ```bash
99
+ pnpm list -g --depth=0
100
+ ```
101
+
102
+ **संभावित वैश्विक निर्भरता संघर्षों को ठीक करें**
103
+
104
+ ```bash
105
+ npm uninstall -g intlayer intlayer-cli
106
+ ```
107
+
108
+ ```bash
109
+ yarn global remove intlayer intlayer-cli
110
+ ```
111
+
112
+ ```bash
113
+ pnpm remove -g intlayer intlayer-cli
114
+ ```
115
+
116
+ 5. कैश साफ़ करने का प्रयास करें
117
+
118
+ कुछ वातावरणों जैसे docker, github actions, या वेब होस्टिंग प्लेटफ़ॉर्म जैसे Vercel में कैश मौजूद हो सकता है। आप कैश को साफ़ करने और पुनः इंस्टॉलेशन का प्रयास कर सकते हैं।
119
+
120
+ आप निम्नलिखित कमांड के साथ अपने पैकेज मैनेजर का कैश भी साफ़ करने का प्रयास कर सकते हैं:
121
+
122
+ ```bash
123
+ npm cache clean --force
124
+ ```
125
+
126
+ ```bash
127
+ yarn cache clean
128
+ ```
129
+
130
+ ```bash
131
+ pnpm cache clean
132
+ ```