Open williamFalcon opened 6 years ago
+1. I have:
"ng2-smart-table": "^1.2.1"
I had to downgrade but it worked:
"ng2-smart-table": "1.2.0" // notice exact version without ^
i have the same problem. so how to downgrade ng2-Smart-table version
@nedssteven You do remove it first
npm uninstall ng2-smart-table
then you add the specific version
npm install ng2-smart-table@1.2.0
// package.json shuold look like this
...
"dependencies": {
...
"ng2-smart-table": "1.2.0",
...
...
Of course i did it. The problem isthat i have updated my npm with << npm update>> since ng2-smart-table went to 1.3.4 version. When i try to remove the actual version with <<npm uninstall -ng2-smart-table --save>> It shows that packages has been removed but when i try << npm view ng2-smart-table version>> it always shows version 1.374
// package.json looks like this ... "ng2-search-filter": "^0.4.7", "ng2-select": "^2.0.0", "ng2-smart-table": "^1.3.3", "ng2-smart-table-extended": "^1.0.19", "ng2-social-share": "0.0.10", "ngx-bootstrap": "^3.0.1", ........ } not yet working because of the mismatch version of ng2-smart-table
ERROR in Error: Metadata version mismatch for module C:/Workspace/DESTINYBACKOFFICE/node_modules/ng2-smart-table/index.d.ts, found version 4, expected 3, resolving symbol AppModule in C:/Workspace/DESTINYBACKOFFICE/src/app/app.module.ts, resolving symbol AppModule in C:/Workspace/DESTINYBACKOFFICE/src/app/app.module.ts
at syntaxError (C:\Workspace\DESTINYBACKOFFICE\node_modules\@angular\compiler\bundles\compiler.umd.js:1729:34)
at simplifyInContext (C:\Workspace\DESTINYBACKOFFICE\node_modules\@angular\compiler\bundles\compiler.umd.js:25118:23)
at StaticReflector.simplify (C:\Workspace\DESTINYBACKOFFICE\node_modules\@angular\compiler\bundles\compiler.umd.js:25130:13)
at StaticReflector.annotations (C:\Workspace\DESTINYBACKOFFICE\node_modules\@angular\compiler\bundles\compiler.umd.js:24558:41)
at _getNgModuleMetadata (C:\Workspace\DESTINYBACKOFFICE\node_modules\@angular\compiler-cli\src\ngtools_impl.js:138:31)
at _extractLazyRoutesFromStaticModule (C:\Workspace\DESTINYBACKOFFICE\node_modules\@angular\compiler-cli\src\ngtools_impl.js:109:26)
at Object.listLazyRoutesOfModule (C:\Workspace\DESTINYBACKOFFICE\node_modules\@angular\compiler-cli\src\ngtools_impl.js:53:22)
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (C:\Workspace\DESTINYBACKOFFICE\node_modules\@angular\compiler-cli\src\ngtools_api.js:91:39)
at AotPlugin._getLazyRoutesFromNgtools (C:\Workspace\DESTINYBACKOFFICE\node_modules\@ngtools\webpack\src\plugin.js:207:44)
at _donePromise.Promise.resolve.then.then.then.then.then (C:\Workspace\DESTINYBACKOFFICE\node_modules\@ngtools\webpack\src\plugin.js:443:24)
at
@nedssteven try modifying the package.json like this:
- "ng2-smart-table": "^1.3.3",
// remove this line
+ "ng2-smart-table": "1.2.0",
// add this line
and run npm install
again
@josead thanks but it doesn't work This is the output error ERROR in Error: Metadata version mismatch for module C:/Workspace/DESTINYBACKOFFICE/node_modules/ng2-smart-table/index.d.ts, found version 4, expected 3, resolving symbol AppModule in C:/Workspace/DESTINYBACKOFFICE/src/app/app.module.ts, resolving symbol AppModule in C:/Workspace/DESTINYBACKOFFICE/src/app/app.module.ts at syntaxError (C:\Workspace\DESTINYBACKOFFICE\node_modules@angular\compiler\bundles\compiler.umd.js:1729:34) at simplifyInContext (C:\Workspace\DESTINYBACKOFFICE\node_modules@angular\compiler\bundles\compiler.umd.js:25118:23) at StaticReflector.simplify (C:\Workspace\DESTINYBACKOFFICE\node_modules@angular\compiler\bundles\compiler.umd.js:25130:13) .................................................
Does ng2-smart-table extended work in angular 6 ?
check this for reference
I have a big problem, because I am current 4.3 version of Angular and i have the same problem when i back to version 1.2.0, i have errors because this version needs http from angular.
Here is the package.json.