Getting started Angular CI

Followed the Getting started with Angular CI:
https://ej2.syncfusion.com/angular/documentation/getting-started/angular-cli/
ngular CLI: 10.1.7
Node: 12.0.0
OS: linux x64
Angular: 10.1.6
And I am getting the following error when running. Any idea how to fix?:
$ ng serve
✔ Browser application bundle generation complete.

Initial Chunk Files | Names | Size
vendor.js | vendor | 343.99 kB
runtime.js | runtime | 6.15 kB
main.js | main | 2.36 kB
polyfills.js | polyfills | 1.25 kB
styles.css | styles | 118 bytes

| Initial Total | 353.86 kB

Build at: 2021-02-04T20:34:49.551Z - Hash: 2f6fc972efc4f27e5779 - Time: 3769ms

Error: ./src/main.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
TypeError: angularCompiler.getResourceDependencies is not a function or its return value is not iterable
at getDependencies (/home/johan/git/syncfusion-angular-app/node_modules/@ngtools/webpack/src/ivy/plugin.js:261:56)
at /home/johan/git/syncfusion-angular-app/node_modules/@ngtools/webpack/src/ivy/plugin.js:374:20
at analyzingFileEmitter (/home/johan/git/syncfusion-angular-app/node_modules/@ngtools/webpack/src/ivy/plugin.js:307:20)
at processTicksAndRejections (internal/process/task_queues.js:88:5)

Error: ./src/polyfills.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
TypeError: angularCompiler.getResourceDependencies is not a function or its return value is not iterable
at getDependencies (/home/johan/git/syncfusion-angular-app/node_modules/@ngtools/webpack/src/ivy/plugin.js:261:56)
at /home/johan/git/syncfusion-angular-app/node_modules/@ngtools/webpack/src/ivy/plugin.js:374:20
at analyzingFileEmitter (/home/johan/git/syncfusion-angular-app/node_modules/@ngtools/webpack/src/ivy/plugin.js:307:20)
at processTicksAndRejections (internal/process/task_queues.js:88:5)

3 Replies 1 reply marked as answer

JA Jesus Arockia Sankaran S Syncfusion Team February 5, 2021 06:05 AM UTC

Hi Johan,  

Sorry for the inconvenience.  

We have checked your query and we are not able to reproduce the reported issue on our end. We have created an application in Angular 10 for your reference that we can get from the below link. 


We request you to run the sample in your machine and revert back whether you can experience the same error. Also, kindly modify the above sample and sent back to reproduce the issue in our end.  

Please get back to us with requested details and further query if any. 

Regards, 
Jesus Arockia Sankaran S 


Marked as answer

JO Johan February 5, 2021 09:18 PM UTC

The Sample project works just fine. At the moment that is good enough. Now I have something to start building on. Thanks!


Angular CLI: 10.1.7
Node: 12.0.0
OS: linux x64

Angular: 10.1.6
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1001.7
@angular-devkit/build-angular   0.1001.7
@angular-devkit/core            10.1.7
@angular-devkit/schematics      10.1.7
@angular/cli                    10.1.7
@schematics/angular             10.1.7
@schematics/update              0.1001.7
rxjs                            6.6.3
typescript                      4.0.5



JA Jesus Arockia Sankaran S Syncfusion Team February 8, 2021 06:13 AM UTC

Hi Johan, 
 
Thank you for the details and we are glad that the provided sample worked for you. 
 
Regards, 
Jesus Arockia Sankaran S 


Loader.
Up arrow icon