首页 > 解决方案 > 找不到模块:错误:无法解析“模块”

问题描述

我做了从 Angular 6 到 Angular 8 的更新。如果我运行,我会收到此警告ng serve

WARNING in ./node_modules/typescript/lib/typescript.js 94814:19-45
Critical dependency: the request of a dependency is an expression

WARNING in ./node_modules/source-map-support/source-map-support.js
Module not found: Error: Can't resolve 'module' in 'C:\Soupport'

标签: angular

解决方案


将 source-map-support 版本确定为 0.4.3 确实可以解决问题。

有关更多详细信息:找不到模块:错误:无法解析 [...]source-map-support 中的模块“模块”


推荐阅读