Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'ngx-ui-switch/src' in angular-cli with angular universal #62

Closed
Sathishchary opened this issue Jun 12, 2017 · 2 comments

Comments

@Sathishchary
Copy link

Its working with angular cli, but after converting my project to angular cli with angular universal. its showing the error
Error: Cannot find module 'ngx-ui-switch/src'

    throw err;
    ^
   Error: Cannot find module 'ngx-ui-switch/src'
    at Function.Module._resolveFilename (module.js:469:15)

using :
"ngx-ui-switch": "^1.3.5",
import { UiSwitchModule } from 'ngx-ui-switch/src';
@NgModule({
imports: [UiSwitchModule]
......
})

@JustinSchneider
Copy link

I'm getting the same or very similar error using Angular-CLI:

ERROR in C:/Projects/FormsDesigner/src/app/app.module.ts (10,32): Cannot find module 'ngx-ui-switch/src'.

ERROR in Error encountered resolving symbol values statically. Could not resolve ngx-ui-switch/src relative to C:/Projec
ts/FormsDesigner/src/app/app.module.ts., resolving symbol AppModule in C:/Projects/FormsDesigner/src/app/app.module.ts,
resolving symbol AppModule in C:/Projects/FormsDesigner/src/app/app.module.ts

ERROR in C:/Projects/FormsDesigner/src/app/app.module.ts (10,32): Cannot find module 'ngx-ui-switch/src'.

ERROR in ./src/app/app.module.ts
Module not found: Error: Can't resolve 'ngx-ui-switch/src' in 'C:\Projects\FormsDesigner\src\app'
@ ./src/app/app.module.ts 16:0-51
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts

It's also worth mentioning that I can't seem to install via NPM, as mentioned in this issue, even using an old version that was working previously.

@webcat12345
Copy link
Owner

Currently its not supporting angular universal. Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants