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

Property 'innerHTML' does not exist on type 'RoundProgressComponent' #1

Open
edriskus opened this issue Dec 14, 2017 · 7 comments
Open
Assignees

Comments

@edriskus
Copy link

Angular 5.1.0
Trying to build using AOT gives an error:

ERROR in node_modules/angular5-svg-round-progressbar/angular5-svg-round-progressbar.d.ts.RoundProgressComponent.html(2,50): : Property 'innerHTML' does not exist on type 'RoundProgressComponent'.
@faisal3325
Copy link
Owner

Can you show your tsconfig?

@faisal3325 faisal3325 self-assigned this Dec 14, 2017
@edriskus
Copy link
Author

@faisal3325 it's an @angular/cli project, generated using v1.5.0

tsconfig.json:

{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2017",
      "dom"
    ]
  }
}

tsconfig.app.sjon:

{
  "extends": "../tsconfig.json",
  "compilerOptions": {
    "outDir": "../out-tsc/app",
    "baseUrl": "./",
    "module": "es2015",
    "types": [],
    "experimentalDecorators": true
  },
  "exclude": [
    "test.ts",
    "**/*.spec.ts"
  ]
}

@faisal3325
Copy link
Owner

In your tsconfig.json define the module,
"module": "es2015",
That's weird though, what version are you for the component?

@edriskus
Copy link
Author

@faisal3325 I'm using 1.0.2-release. As I said, it only fails during AOT compile. It works with JIT, but I need to use buildOptimizer

@faisal3325
Copy link
Owner

faisal3325 commented Dec 15, 2017

Builds fine for me with this configuration:

  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": [
      "dom",
      "es2015"
    ],
    "module": "es2015",
    "moduleResolution": "node",
    "sourceMap": true,
    "target": "es5",
    "typeRoots": [
      "../node_modules/@types"
    ]
  },
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modules",
    "src/**/*.spec.ts",
    "src/**/__tests__/*.ts"
  ],
  "compileOnSave": false,
  "atom": {
    "rewriteTsconfig": false
  }
}

@atiqueakbani
Copy link

Working for me fine.

@carndacier
Copy link

Same issue here - work file when I debug, fail during prod build :/

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

4 participants