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

S1086: An accessor cannot be declared in an ambient context. #304

Closed
jayjupdhig opened this issue Nov 17, 2020 · 2 comments
Closed

S1086: An accessor cannot be declared in an ambient context. #304

jayjupdhig opened this issue Nov 17, 2020 · 2 comments

Comments

@jayjupdhig
Copy link

get that message when i build with latest nodejs 10.x version: angular/angular#39674

the only one adequate solution (regarding time & finances) seems to be:

change file ckeditor.component.d.ts from:


    get value(): any;
    set value(v: any);

to:

    /*
    get value(): any;
    set value(v: any);
    */

Or removing the lines...

Why that?

Thx for feedback,
Jan

@kzimny
Copy link
Collaborator

kzimny commented Nov 17, 2020

Without deep dive in your project dependencies, try to skip the library check in tsconfig.json resp. tsconfig.base.json. Hope it will help you!

"compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "module": "esnext",
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2015",
    **"skipLibCheck": true,**
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2018",
      "dom"
    ]
  },

@jayjupdhig
Copy link
Author

Thank you very much!! :-)

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