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

error TS2687: All declarations of 'name' must have identical modifiers. #592

Open
2 of 3 tasks
elcreator opened this issue Aug 7, 2023 · 1 comment
Open
2 of 3 tasks

Comments

@elcreator
Copy link

elcreator commented Aug 7, 2023

Bug Report

Problem

What is expected to happen?

successful build

What does actually happen?

Error: node_modules/cordova-plugin-file/types/index.d.ts:47:5 - error TS2687: All declarations of 'name' must have identical modifiers.

47     name: string;
       ~~~~


Error: node_modules/cordova-plugin-file/types/index.d.ts:49:5 - error TS2687: All declarations of 'root' must have identical modifiers.

49     root: DirectoryEntry;
       ~~~~


Error: node_modules/cordova-plugin-file/types/index.d.ts:49:5 - error TS2717: Subsequent property declarations must have the same type.  Property 'root' must be of type 'FileSystemDirectoryEntry', but here has type 'DirectoryEntry'.

49     root: DirectoryEntry;
       ~~~~

  node_modules/typescript/lib/lib.dom.d.ts:8316:14
    8316     readonly root: FileSystemDirectoryEntry;
                      ~~~~
    'root' was also declared here.


Error: node_modules/typescript/lib/lib.dom.d.ts:8314:14 - error TS2687: All declarations of 'name' must have identical modifiers.

8314     readonly name: string;
                  ~~~~


Error: node_modules/typescript/lib/lib.dom.d.ts:8316:14 - error TS2687: All declarations of 'root' must have identical modifiers.

8316     readonly root: FileSystemDirectoryEntry;

Information

Command or Code

npm run build in Ionic 7

Environment, Platform, Device

Windows 11

Version information

"typescript": "~5.1.6"
"cordova-plugin-file": "^8.0.0",

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@elcreator
Copy link
Author

any ideas? it conflicts with dom which is enabled by default in the tsconfig.json and is required for Angular

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

1 participant