klren0312 / daliy_knowledge

知识积累,正确使用方式是watch
21 stars 4 forks source link

typescript中使用模块提示refers to a UMD global, but the current file is a module. Consider adding an import instead. #829

Open klren0312 opened 4 months ago

klren0312 commented 4 months ago

tsconfig.json中添加配置

{
  "compilerOptions": {
    "allowUmdGlobalAccess": true,
  }
}