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
Describe the bug
After upgrading from 4.3.0 to 4.4.1 the build of our Next.js app started failing with the following error:
unhandledRejection Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '<...>/node_modules/use-sync-external-store/shim' is not supported resolving ES modules imported from <...>/node_modules/@lingui/react/dist/index.mjs
Did you mean to import use-sync-external-store/shim/index.js?
at new NodeError (node:internal/errors:399:5)
at finalizeResolution (node:internal/modules/esm/resolve:319:17)
at moduleResolve (node:internal/modules/esm/resolve:945:10)
at defaultResolve (node:internal/modules/esm/resolve:1153:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)
at link (node:internal/modules/esm/module_job:76:36) {
type: 'Error',
code: 'ERR_UNSUPPORTED_DIR_IMPORT',
url: 'file://<...>/node_modules/use-sync-external-store/shim'
}
Describe the bug
After upgrading from 4.3.0 to 4.4.1 the build of our Next.js app started failing with the following error:
Additional context
4.4.1
7.22.11
@lingui/swc-plugin
babel-macro-plugin
Might be related to facebook/react#26230
Is there something we should do on our end to make it work?
The text was updated successfully, but these errors were encountered: