diff --git a/packages/nitro/src/rollup/config.ts b/packages/nitro/src/rollup/config.ts index e0c84e12e9..80fae2c5f8 100644 --- a/packages/nitro/src/rollup/config.ts +++ b/packages/nitro/src/rollup/config.ts @@ -173,7 +173,8 @@ export const getRollupConfig = (sigmaContext: SigmaContext) => { rootDir: sigmaContext._nuxt.rootDir, moduleDirectories: [ resolve(sigmaContext._nuxt.rootDir, 'node_modules'), - resolve(MODULE_DIR, 'node_modules') + resolve(MODULE_DIR, 'node_modules'), + 'node_modules' ], mainFields: ['main'] // Force resolve CJS (@vue/runtime-core ssrUtils) }))