Closed itcozum closed 6 years ago
I got the same error. Working here with this:
import { UiSwitchModule } from 'ngx-ui-switch/dist/es5';
I think the "main" and/or "module" entries in package.json are missing.
@cmckni3 , please review last change. and could you please try to publish correct one to npm as version 1.4.2? I just tried this and 1.4.1 seems not working. I am trying to investigate what the problem is. This is urgent.
@cmckni3 , please test npm publish
process.
I just published 1.4.4
. npm publish
inside of scripts
was running in the wrong directory when using yarn to run the script.
Cool let me test it.
Thanks @cmckni3 , it works as charm. I just checked AOT build as well.
@itcozum , @am-hs , let us know if issue has been solved.
No problem. Sorry about that. I didn't test it before I had access to npm. Was lazy about changing the package name 😞
@webcat12345 Thanks, it's working now 👍
hi,
I'm getting the below error after npm i
ERROR in D:/PROJELER/2017/tps-hr/web/src/app/system/personnel/personnel.module.ts (7,32): Cannot find module 'ngx-ui-switch'. ERROR in Error: Error encountered resolving symbol values statically. Could not resolve ngx-ui-switch relative to D:/PROJELER/2017/tps-hr/web/s ymbol PersonnelModule in D:/PROJELER/2017/tps-hr/web/src/app/system/personnel/personnel.module.ts, resolving symbol PersonnelModule in D:/PROJE dule.ts at syntaxError (D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler\bundles\compiler.umd.js:1729:34) at simplifyInContext (D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler\bundles\compiler.umd.js:25118:23) at StaticReflector.simplify (D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler\bundles\compiler.umd.js:25130:13) at StaticReflector.annotations (D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler\bundles\compiler.umd.js:24558:41) at _getNgModuleMetadata (D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler-cli\src\ngtools_impl.js:138:31) at _extractLazyRoutesFromStaticModule (D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler-cli\src\ngtools_impl.js:109:26) at D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler-cli\src\ngtools_impl.js:129:27 at Array.reduce (native) at _extractLazyRoutesFromStaticModule (D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler-cli\src\ngtools_impl.js:128:10) at D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler-cli\src\ngtools_impl.js:129:27 at Array.reduce (native) at _extractLazyRoutesFromStaticModule (D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler-cli\src\ngtools_impl.js:128:10) at Object.listLazyRoutesOfModule (D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler-cli\src\ngtools_impl.js:53:22) at Function.NgTools_InternalApi_NG_2.listLazyRoutes (D:\PROJELER\2017\tps-hr\web\node_modules\@angular\compiler-cli\src\ngtools_api.js:91:3 at AotPlugin._getLazyRoutesFromNgtools (D:\PROJELER\2017\tps-hr\web\node_modules\@ngtools\webpack\src\plugin.js:207:44) at _donePromise.Promise.resolve.then.then.then.then.then (D:\PROJELER\2017\tps-hr\web\node_modules\@ngtools\webpack\src\plugin.js:443:24) at process._tickCallback (internal/process/next_tick.js:109:7)