Either using 'npm run build' or 'npx webpack --mode=production', it reports
"ERROR in ./src/code.ts
Module build failed (from ./node_modules/ts-loader/index.js):
Error: Debug Failure. False expression: Non-string value passed to ts.resolveTypeReferenceDirective, likely by a wrapping package working with an outdated resolveTypeReferenceDirectives signature. This is probably not a problem in TS itself.".
After re-install the typescript, the error is still there.
Either using 'npm run build' or 'npx webpack --mode=production', it reports "ERROR in ./src/code.ts Module build failed (from ./node_modules/ts-loader/index.js): Error: Debug Failure. False expression: Non-string value passed to
ts.resolveTypeReferenceDirective
, likely by a wrapping package working with an outdatedresolveTypeReferenceDirectives
signature. This is probably not a problem in TS itself.". After re-install the typescript, the error is still there.