angular-cli: CLI 5.0 Build Error ERROR in TypeError: staticSymbol.assertNoMembers is not a function

Bug Report or Feature Request (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Output from: ng --version. Angular CLI: 1.5.0 Node: 8.9.0 OS: win32 x64 Angular: 5.0.0 … animations, common, compiler, compiler-cli, core, forms … http, language-service, platform-browser … platform-browser-dynamic, router

@angular/cdk: 2.0.0-beta.12 @angular/cli: 1.5.0 @angular/flex-layout: 2.0.0-beta.10 @angular/material: 2.0.0-beta.12 @angular-devkit/build-optimizer: 0.0.32 @angular-devkit/core: 0.0.20 @angular-devkit/schematics: 0.0.35 @ngtools/json-schema: 1.1.0 @ngtools/webpack: 1.8.0 @schematics/angular: 0.1.0 typescript: 2.4.2 webpack: 3.8.1 –>

Repro steps.

Just run ng build.

Please include: commands run, packages added, related code changes. A link to a sample repo would help too. –>

The log given by the failure.

ERROR in TypeError: staticSymbol.assertNoMembers is not a function at AotSummaryResolver.resolveSummary (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@angular\compiler\bundles\compiler.umd.js:31928:22) at CompileMetadataResolver._loadSummary (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@angular\compiler\bundles\compiler.umd.js:14709:66) at CompileMetadataResolver.isDirective (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@angular\compiler\bundles\compiler.umd.js:15003:23) at CompileMetadataResolver._getTypeDescriptor (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@angular\compiler\bundles\compiler.umd.js:15269:18) at C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@angular\compiler\bundles\compiler.umd.js:15131:78 at Array.forEach (<anonymous>) at CompileMetadataResolver.getNgModuleMetadata (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@angular\compiler\bundles\compiler.umd.js:15114:49) at visitLazyRoute (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@angular\compiler\bundles\compiler.umd.js:29937:104) at AotCompiler.listLazyRoutes (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@angular\compiler\bundles\compiler.umd.js:29905:20) at AngularCompilerProgram.listLazyRoutes (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@angular\compiler-cli\src\transformers\program.js:157:30) at Function.NgTools_InternalApi_NG_2.listLazyRoutes (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@angular\compiler-cli\src\ngtools_api.js:44:36) at AngularCompilerPlugin._getLazyRoutesFromNgtools (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:246:66) at Promise.resolve.then.then (C:\Users\Gary\WebstormProjects\ConstituentManager2\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:542:50) at <anonymous> npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! constituent-manager2@0.0.0 build: ng build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the constituent-manager2@0.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Gary\AppData\Roaming\npm-cache_logs\2017-11-02T23_01_15_401Z-debug.log

Desired functionality.

Mention any other details that might be useful.

The same application works with Angular 4.4.6 and Angular-cli 1…4.5.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 11
  • Comments: 18 (2 by maintainers)

Most upvoted comments

I have the same issue

Same here…

I have the same issue

@ghaddon why did you close this issue?

Hi guys,

I upgraded from Angular 4.4.5 to 5.0.0 version. However, I got the same issue.

Here is my setup: npm 5.4.2 angular/cli: 1.5.0 ng2-breadcrumb: 0.5.14 <-- coming from this dependency.

Here is the error message:

ERROR in TypeError: staticSymbol.assertNoMembers is not a function
    at AotSummaryResolver.resolveSummary (angular5-app/node_modules/@angular/compiler/bundles/compiler.umd.js:31928:22)
    at CompileMetadataResolver._loadSummary (angular5-app/node_modules/@angular/compiler/bundles/compiler.umd.js:14709:66)
    at CompileMetadataResolver.isDirective (angular5-app/node_modules/@angular/compiler/bundles/compiler.umd.js:15003:23)
    at CompileMetadataResolver._getTypeDescriptor (angular5-app/node_modules/@angular/compiler/bundles/compiler.umd.js:15269:18)
    at angular5-app/node_modules/@angular/compiler/bundles/compiler.umd.js:15131:78
    at Array.forEach (<anonymous>)
    at CompileMetadataResolver.getNgModuleMetadata (angular5-app/node_modules/@angular/compiler/bundles/compiler.umd.js:15114:49)
    at visitLazyRoute (angular5-app/node_modules/@angular/compiler/bundles/compiler.umd.js:29937:104)
    at AotCompiler.listLazyRoutes (angular5-app/node_modules/@angular/compiler/bundles/compiler.umd.js:29905:20)
    at AngularCompilerProgram.listLazyRoutes (angular5-app/node_modules/@angular/compiler-cli/src/transformers/program.js:157:30)
    at Function.NgTools_InternalApi_NG_2.listLazyRoutes (angular5-app/node_modules/@angular/compiler-cli/src/ngtools_api.js:44:36)
    at AngularCompilerPlugin._getLazyRoutesFromNgtools (angular5-app/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:246:66)
    at Promise.resolve.then.then (angular5-app/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:542:50)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

webpack: Failed to compile.

Any idea how to proceed to solve this kind of issue?

Thanks in advance for your help!

in my case uninstall ngx-restangular Solve the problem