Vue version
3.3.7
Link to minimal reproduction
link repro - 1
Steps to reproduce
open repro

What is expected?
no error
What is actually happening?
error
node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts:1:32 - error TS2307: Cannot find module 'lru-cache/min' or its corresponding type declarations.
1 import * as lru_cache_min from 'lru-cache/min'
Found 1 error in node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts:1
Any additional comments?
v3.3.4

v3.3.5

[email protected]
Install lru-cache independently is still failed because there is no lru-cache/min;

I found this problem seems to be more related to tsc. link repro - 2

Suggestion
-
added lru-cache to dependencies
-
set node instead of bundler on moduleResolution property or only instead for build(tsconfig.build.json), it will work fine.
|
"moduleResolution": "bundler", |
-
npm run build-dts

if it's not a bug, please close the issue. Because moduleResolution property set to bundler will work fine in my project.
Vue version
3.3.7
Link to minimal reproduction
link repro - 1
Steps to reproduce
open repro

What is expected?
no error
What is actually happening?
error
Any additional comments?
v3.3.4

v3.3.5

[email protected]

Install
lru-cacheindependently is still failed because there is nolru-cache/min;I found this problem seems to be more related to

tsc. link repro - 2Suggestion
added
lru-cacheto dependenciescore/packages/compiler-sfc/package.json
Line 50 in 9ca468c
set
nodeinstead ofbundleronmoduleResolutionproperty or only instead for build(tsconfig.build.json), it will work fine.core/tsconfig.json
Line 10 in 9ca468c
npm run build-dtsif it's not a bug, please close the issue. Because
moduleResolutionproperty set tobundlerwill work fine in my project.