"ERROR in Expected array when reading property imports" when ivy is enabled
See original GitHub issueEnvironment Details
- Spartacus: 0.1.0-beta.1
Steps to Reproduce
tsconfig.json
{
"angularCompilerOptions": {
"enableIvy": true,
},
}
1.) rm -rf node_modules
2.) npm i
3.) npm run start
Observed Results
ERROR in Expected array when reading property imports
Expected Results
Compiled successfully.
Offer to Fix
https://github.com/angular/angular/issues/29835
Additional Information
Spread Syntax in modules should be avoided!
I would be willing to submit a PR to fix this issue
[x] Yes [ ] No
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Angular Library with Ivy enabled fails to load - Stack Overflow
I am trying to create an angular library project but I am getting this error in the console. Uncaught TypeError: Cannot read property...
Read more >Angular 9's Best Hidden Feature: Strict Template Checking
Find and report more errors than ever with Angular 9's Ivy compiler, strict template checking.
Read more >NgModule FAQ - Angular
An array of directives imported from another module. For example, don't declare ... Why list the same component in multiple NgModule properties?link.
Read more >Type-checking templates in Angular View Engine and Ivy
In this article we'll explore how Angular type-checks templates, review the difference between View Engine and Ivy type-checking and break down the process ......
Read more >The Angular Ivy guide for library authors - DEV Community
This has to do with how compiled component factories and metadata worked in those versions of Angular. Ivy follows the principle of locality...
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 Free
Top 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
@znikola is this related to the work on ivy you’re doing? Maybe contract the reporter to see about the offer to fix?
Can’t reproduce. Since this is an older issue, it might have been fixed in the meantime. However, I encountered another error in the console, see: #3741 .