elcreator opened a new issue, #592:
URL: https://github.com/apache/cordova-plugin-file/issues/592
# 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
<!-- Include all relevant information that might help understand and
reproduce the problem -->
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
npm run build in Ionic 7
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
Windows 11
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
"typescript": "~5.1.6"
"cordova-plugin-file": "^8.0.0",
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]