ngx-joyride icon indicating copy to clipboard operation
ngx-joyride copied to clipboard

Metadata version mismatch for module /var/www/html/angular4/lms-poc/node_modules/ngx-joyride/joyride.d.ts, found version 4, expected 3

Open priyabratap opened this issue 5 years ago • 4 comments

Metadata version mismatch for module /var/www/html/angular4/lms-poc/node_modules/ngx-joyride/joyride.d.ts, found version 4, expected 3

pj@pj-HP-EliteBook-840-G1:/var/www/html/angular4/lms-poc$ sudo ng serve
Your global Angular CLI version (7.3.0) is greater than your local
version (1.4.7). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
Date: 2019-04-14T13:24:40.696Z                                                        
Hash: fe53d4b3d8514aa15f4d
Time: 2809ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 1.06 kB {vendor} [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 323 bytes {inline} [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 11.3 kB {inline} [initial] [rendered]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 338 kB [initial] [rendered]

ERROR in /var/www/html/angular4/lms-poc/node_modules/ngx-joyride/src/services/joyride-steps-container.service.d.ts (6,12): In ambient enum declarations member initializer must be constant expression.
ERROR in /var/www/html/angular4/lms-poc/node_modules/ngx-joyride/src/services/joyride-steps-container.service.d.ts (7,12): In ambient enum declarations member initializer must be constant expression.
ERROR in Error: Metadata version mismatch for module /var/www/html/angular4/lms-poc/node_modules/ngx-joyride/joyride.d.ts, found version 4, expected 3, resolving symbol AppModule in /var/www/html/angular4/lms-poc/src/app/app.module.ts, resolving symbol AppModule in /var/www/html/angular4/lms-poc/src/app/app.module.ts, resolving symbol AppModule in /var/www/html/angular4/lms-poc/src/app/app.module.ts
    at syntaxError (/var/www/html/angular4/lms-poc/node_modules/@angular/compiler/bundles/compiler.umd.js:1729:34)
    at simplifyInContext (/var/www/html/angular4/lms-poc/node_modules/@angular/compiler/bundles/compiler.umd.js:24979:23)
    at StaticReflector.simplify (/var/www/html/angular4/lms-poc/node_modules/@angular/compiler/bundles/compiler.umd.js:24991:13)
    at StaticReflector.annotations (/var/www/html/angular4/lms-poc/node_modules/@angular/compiler/bundles/compiler.umd.js:24418:41)
    at _getNgModuleMetadata (/var/www/html/angular4/lms-poc/node_modules/@angular/compiler-cli/src/ngtools_impl.js:138:31)
    at _extractLazyRoutesFromStaticModule (/var/www/html/angular4/lms-poc/node_modules/@angular/compiler-cli/src/ngtools_impl.js:109:26)
    at Object.listLazyRoutesOfModule (/var/www/html/angular4/lms-poc/node_modules/@angular/compiler-cli/src/ngtools_impl.js:53:22)
    at Function.NgTools_InternalApi_NG_2.listLazyRoutes (/var/www/html/angular4/lms-poc/node_modules/@angular/compiler-cli/src/ngtools_api.js:91:39)
    at AotPlugin._getLazyRoutesFromNgtools (/var/www/html/angular4/lms-poc/node_modules/@ngtools/webpack/src/plugin.js:212:44)
    at _donePromise.Promise.resolve.then.then.then.then.then (/var/www/html/angular4/lms-poc/node_modules/@ngtools/webpack/src/plugin.js:448:24)
    at process._tickCallback (internal/process/next_tick.js:68:7)

webpack: Failed to compile.

priyabratap avatar Apr 14 '19 13:04 priyabratap

@priyabratap of you want to start the project you'll need to lunch it in this way npm run start

Using directly ng should be avoided since with that you'll point to the global node_modules folder.

tnicola avatar Apr 14 '19 14:04 tnicola

@tnicola Thanks for your response. But getting the same error as you suggested to lunch using npm run start. No luck!

priyabratap avatar Apr 14 '19 18:04 priyabratap

Hi @priyabratap Did you solve the problem?

tnicola avatar Apr 25 '19 09:04 tnicola

Hey, i have the same problem.

ERROR in C:/Users/DGaul/Desktop/test/Front/ng2-apsys_kb/node_modules/ngx-joyride/src/services/joyride-steps-container.service.d.ts (6,12): In ambient enum declarations member initializer must be constant expression.

ERROR in C:/Users/DGaul/Desktop/test/Front/ng2-apsys_kb/node_modules/ngx-joyride/src/services/joyride-steps-container.service.d.ts (7,12): In ambient enum declarations member initializer must be constant expression.

ERROR in Metadata version mismatch for module C:/Users/DGaul/Desktop/test/Front/ng2-apsys_kb/node_modules/ngx-joyride/joyride.d.ts, found version 4, expected 3, resolving symbol AppModule in C:/Users/DGaul/Desktop/test/Front/ng2-apsys_kb/src/app/app.module.ts, resolving symbol AppModule in C:/Users/DGaul/Desktop/test/Front/ng2-apsys_kb/src/app/app.module.ts, resolving symbol AppModule in C:/Users/DGaul/Desktop/test/Front/ng2-apsys_kb/src/app/app.module.ts

Unfortunately different ways to run the project also do not help. Any other ideas?

GDoman avatar Aug 13 '19 15:08 GDoman