after AOT build and run "Cannot read property 'id' of undefined" at setColumnDefaults
See original GitHub issueHi 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
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:
- Created 7 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sounds like we should be able to fix. I’ll tweak it but will need ur help testing.
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.