Base solution for your next web application
Open Closed

Client Angular app error on running #4215


User avatar
0
buddhit created

Hi There I am trying to run app I downloaded without modifying and when run angular app, I got following error.

Uncaught Error: Unexpected value 'AbpModule' imported by the module 'AppModule'. Please add a @NgModule annotation. at syntaxError (compiler.es5.js:1694) at eval (compiler.es5.js:15398) at Array.forEach (<anonymous>) at CompileMetadataResolver.getNgModuleMetadata (compiler.es5.js:15381) at CompileMetadataResolver.getNgModuleSummary (compiler.es5.js:15323) at eval (compiler.es5.js:15396) at Array.forEach (<anonymous>) at CompileMetadataResolver.getNgModuleMetadata (compiler.es5.js:15381) at JitCompiler._loadModules (compiler.es5.js:26826) at JitCompiler._compileModuleAndComponents (compiler.es5.js:26799)

Clearly it is asking to import ngModel but not sure where that import needed. Thanks


4 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi @buddhit,

    When was the last time you downloaded it? (which version also I mean)

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @buddhit,

    Probably you need to update abp-ng2-module. Which version of Angular you are using ?

  • User Avatar
    0
    buddhit created

    I was on V5.0.0. Now I downloaded V5.0.2 it is working fine. Thank you guys.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Great :)