question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TS build fails after upgrade to 7.3.0 with noImplicitAny flag.

See original GitHub issue

I’m submitting a … (check one with “x”)

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior

TS fails building release/components/row-detail/row-detail.directive.d.ts with --noImplicitAny flag with (10, 34) Parameter 'index' implicitly has an 'any' type. error.

Expected behavior

Build runs without errors.

Reproduction of the problem

  • update to @swimlane/ngx-datatable@7.3.0 in any project using ngx-datatable
  • build the project

What is the motivation / use case for changing the behavior?

Fix the bug

Please tell us about your environment:

Win10, Node 7.7.3, Npm 4.1.2

  • Table version: 0.7.x

0.7.3

  • Angular version: 2.0.x

4.0.1

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Not related to browsers

  • Language: [all | TypeScript X.X | ES6/7 | ES5] TS 2.2.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
raveclassiccommented, Apr 10, 2017

How is it related to node_modules? It’s an expected behavior for TS to build generated .d.ts schemes from ngx-datatable because of import { NgxDatatableModule } from '@swimlane/ngx-datatable'; in consuming project.

Default ng2 app configuration does not require excluding node_modules because app is built with src/tsconfig.app.json inside src, that’s why node_modules are not included anyway.

The bug is a regression after this change

0reactions
amcdnlcommented, May 5, 2017

This should be fixed in latest

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular build ignore typescript error using noImplicitAny is not ...
It seems to me the errors you are getting are caught on properties of objects that have an explicit type defined, instead of...
Read more >
TSConfig Reference - Docs on every TSConfig option
Turning on noImplicitAny however TypeScript will issue an error whenever it ... this flag, so upgrades of TypeScript might result in new type...
Read more >
How to use TypeScript & ES6 in your Magento module using ...
ts :errors displays any TypeScript errors from the TSC compiler, as we're using Babel to compile our TypeScript we do not receive errors...
Read more >
TypeScript configuration - Angular
When the noImplicitAny flag is true and the TypeScript compiler cannot infer the type, it still generates the JavaScript files, but it also...
Read more >
Authentication | Ts.ED - A Node.js and TypeScript Framework ...
js to protect your API. Ts.ED provide a @tsed/passport plugin in order to facilitate the use of this library within the framework. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found