You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to share an instance of next-i18next.
For example, There are 'package a' and 'package b'.
'package b' is just build react component and component in 'package b' use next-i18next but it hasn't next-18next provider (react conext api).
'package a' has next-i18next provider and it should use component in 'package b' with monorepo.
So i add 'package b' in package.json.
I think install only lodash in package/packageA/node_modules/packageB/node_modules. because lodash is dependency and next-i18next is dev dependency.
But, reality is installed lodash and next-i18next.
So, import 'next-i18next' in 'package b' is not find module in package/packageA/node_modules but it find module in package/packageA/node_modules/packageB/node_modules.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want to share an instance of next-i18next.
For example, There are 'package a' and 'package b'.
'package b' is just build react component and component in 'package b' use next-i18next but it hasn't next-18next provider (react conext api).
'package a' has next-i18next provider and it should use component in 'package b' with monorepo.
So i add 'package b' in package.json.
package.json for 'package.a'
package.json for 'package b'
.yarnrc.yml
I think install only lodash in
package/packageA/node_modules/packageB/node_modules
. because lodash is dependency and next-i18next is dev dependency.But, reality is installed lodash and next-i18next.
So, import 'next-i18next' in 'package b' is not find module in
package/packageA/node_modules
but it find module inpackage/packageA/node_modules/packageB/node_modules
.How can i do ??
Beta Was this translation helpful? Give feedback.
All reactions