Error: ',' expected in ckEditor node module files

39 views Asked by At

I am trying to do a POC of ckEditor in my project and following the official doc

After installing the dependencies I am getting error while running using ng serve the project.

Error

I am using Ionic With Angular 12 and below are the details

enter image description here

/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2015",
    "skipLibCheck": true,
    "allowJs": true,
    "module": "es2020",
    "lib": ["es2018", "dom"]
  },
  "angularCompilerOptions": {
    "enableI18nLegacyMessageIdFormat": false,
    "strictInjectionParameters": true,
    "strictInputAccessModifiers": true,
    "strictTemplates": true,
    "allowSyntheticDefaultImports": true
  }
}

This is tsconfig file and I am using "typescript": "~4.2.4"

it seems like TypeScript is having trouble with the type keyword. but from TypeScript version 3.8 or later, the type keyword is not required when importing types.

If it is the case so can someone please tell what I am missing or Do I need to update my Angular version?

1

There are 1 answers

0
José Cândido On

I think this is not related to tsconfig but to dependencies. Check compability between your version of ckeditor and angular/cli.