[BUG] - Cannot find package 'lodash.mapkeys' imported from @nextui-org/theme
NextUI Version
2.2.9
Describe the bug
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'lodash.mapkeys' imported from /var/task/node_modules/@nextui-org/theme/dist/chunk-5QVKTCUZ.mjs at new NodeError (node:internal/errors:405:5) at packageResolve (node:internal/modules/esm/resolve:895:9) at moduleResolve (node:internal/modules/esm/resolve:988:20) at moduleResolveWithNodePath (node:internal/modules/esm/resolve:939:12) at defaultResolve (node:internal/modules/esm/resolve:1181:79) at nextResolve (node:internal/modules/esm/loader:163:28) at ESMLoader.resolve (node:internal/modules/esm/loader:835:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) at ModuleWrap.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
- install Next.js with SST
- use "npx sst deploy" to deploy the stacks on AWS
- after full deployment, the cloudwatch logs returns this missing node module
Expected behavior
As a user, I expect that the node module would be installed, but according to the image i uploaded, lodash.mapskeys is missing
Screenshots or Videos
Operating System Version
Windows
Browser
Edge
I do have the same issue. I tried downgrading to @nextui-org/react version 2.1.13 to no avail.
You need to downgrade NextJS to 13.5.3. It worked for me. I had the version 13.5.4
Closing - not applicable. This will be removed in next version.