Currently, I am facing an issue with my angular project when running npm start
. Strangely enough, the problem only arises after doing a fresh npm install
, not when copying over the older node-modules
folder. There haven't been any recent changes to my package.json file, yet upon running npm start
, this error occurs:
ERROR in node_modules/ang-jsoneditor/jsoneditor/jsoneditor.component.d.ts(13,9): error TS1086: An accessor cannot be declared in an ambient context.
I attempted to update typescript
to the latest version, but it turned out to be incompatible with the version of angular-cli I am using. I also tried updating both jsoneditor
and ang-jsoneditor
.
The exact cause of this issue remains uncertain, whether it's a version mismatch or another underlying error.
Below is a snippet of my package.json
:
{
"name": "Project",
"version": "2.0.0",
"license": "MIT",
"dependencies": {
"@angular/animations": "^7.2.12",
"@angular/cdk": "~7.1.0",
"@angular/common": "^7.2.12",
"@angular/compiler": "^7.2.12",
"@angular/core": "^7.2.12",
"@angular-devkit/build-angular": "~0.11.0",
"@angular/cli": "^7.3.8",
"@angular/compiler-cli": "^7.2.12",
"ang-jsoneditor": "^1.9.4",
"jsoneditor": "^5.34.0",
"typescript": "^3.2.4"
}
}
Your input and assistance are greatly appreciated.