Description:
The latest version of isomorphic-dompurify (2.27.0) pulls in [email protected], which transitively includes [email protected]. This version of lru-cache has ES module resolution issues in Nuxt/Nitro production builds.
Error:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/.output/server/node_modules/lru-cache/dist/esm/index.js'
Did you mean to import "file:///app/.output/server/node_modules/.nitro/[email protected]/dist/commonjs/index.js"?
Environment:
- Node.js: 22
- Nuxt: 4.1.2
- Build environment: Docker
- isomorphic-dompurify: 2.27.0
Dependency Chain:
[email protected]
└── [email protected]
└── [email protected]
└── @asamuzakjp/[email protected]
└── [email protected]
Workaround:
Adding "lru-cache": "^10.4.3" to package.json overrides fixes the issue.