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.

after AOT build and run "Cannot read property 'id' of undefined" at setColumnDefaults

See original GitHub issue

Hi all,

Just wondering if anybody is experiencing error that I am describing here.

[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 screen shot 2016-12-27 at 4 59 43 pm

Expected behavior sholud be running without error

To reproduce the problem ngc compile -> rollup bundle -> ran with gulp-webserver

Please tell us about your environment:

Mac 10.11.6, WebStorm, NPM 3.10.8, gulp-webserver

  • Table version: 0.7.x 4.1.0

  • Angular version: 2.0.x 2.3.1

  • Browser: [Chrome]

  • Language: [TypeScript 2.0.3]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amcdnlcommented, Dec 27, 2016

Sounds like we should be able to fix. I’ll tweak it but will need ur help testing.

0reactions
pauldaustincommented, Feb 21, 2017

The issue is that TypeScript does not allow circular dependencies. So within a module you need to reference the other files in that module using relative references rather than importing from the module.

Using the following imports in the src/utils/column-helper.ts works.

import { camelCase, deCamelCase } from './camel-case';
import { id } from './id';
Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property 'id' of undefined at ...
This code means that for creating instance of DataService you need value from DI by String token/type. Without this provider you could not...
Read more >
Angular compiler options
The following options are available for configuring the AOT template compiler. allowEmptyCodegenFiles link. When true , create all possible files even if they ......
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