Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.13.0 版本在angular16项目中引用报错 TS2309 #464

Closed
wh131462 opened this issue Dec 9, 2023 · 2 comments
Closed

3.13.0 版本在angular16项目中引用报错 TS2309 #464

wh131462 opened this issue Dec 9, 2023 · 2 comments

Comments

@wh131462
Copy link

wh131462 commented Dec 9, 2023

今天更新代码,拉取最新版本之后报错
Error: node_modules/hotkeys-js/index.d.ts:181:1 - error TS2309: An export assignment cannot be used in a module with other exported elements.

181 export = hotkeys;

image
Uploading image.png…

/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "noImplicitOverride": true,
    "noPropertyAccessFromIndexSignature": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "ES2022",
    "module": "ES2022",
    "useDefineForClassFields": false,
    "lib": [
      "ES2022",
      "dom"
    ]
  },
  "angularCompilerOptions": {
    "enableI18nLegacyMessageIdFormat": false,
    "strictInjectionParameters": true,
    "strictInputAccessModifiers": true,
    "strictTemplates": true
  }
}
@jaywcjlove
Copy link
Owner

@wh131462 这可能是我合并 #441 造成的,我测试一下

@jaywcjlove
Copy link
Owner

@wh131462 修复了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants