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.

"ERROR in Expected array when reading property imports" when ivy is enabled

See original GitHub issue

Environment 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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Xymmercommented, Jul 1, 2019

@znikola is this related to the work on ivy you’re doing? Maybe contract the reporter to see about the offer to fix?

0reactions
znikolacommented, Jul 23, 2019

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 .

Read more comments on GitHub >

github_iconTop 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 >

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