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: ENOENT: no such file or directory, open node_modules\ngx-bootstrap-growl\src\bootstrap-alert- type.enum.ts' #9

Open
ahsan9797 opened this issue Feb 20, 2018 · 2 comments

Comments

@ahsan9797
Copy link

ahsan9797 commented Feb 20, 2018

I have used below code to show growl message -

this.bootstrapGrowlService.addAlert("any custom message", BootstrapAlertType.SUCCESS);

and import for this is -

import {BootstrapGrowlService} from "ngx-bootstrap-growl";
import { BootstrapAlertType } from 'ngx-bootstrap-growl';

When I run npm run packagr, getting below error :
BUILD ERROR
ENOENT: no such file or directory, open 'F:\IdeaProjects\GCU_Project\GCU_Code_Base\sprint89_ANG5\gcu-sis.scholarship-web\node_modules\ngx-bootstrap-growl\src\bootstrap-alert-type.en
um.ts'
Error: ENOENT: no such file or directory, open 'F:\IdeaProjects\GCU_Project\GCU_Code_Base\sprint89_ANG5\gcu-sis.scholarship-web\node_modules\ngx-bootstrap-growl\src\bootstrap-alert-
type.enum.ts'

I ran npm install --save ngx-bootstrap-growl command on my project but I have not map this to my systemjs.config.js file.

@mbenzenhoefer
Copy link
Owner

Hi,

it seems that you ran the wrong install command. Try to install ngx-bootstrap-growl. Besides please import the AlertType directly from the lib and not from the concrete file. Let me know if it solved your issue.

Thanks

@ahsan9797
Copy link
Author

Hi mbenzenhoefer,

I tried to import { BootstrapAlertType } from 'ngx-bootstrap-growl' like this also, still getting same error and to install growl used command npm install --save ngx-bootstrap-growl.

Still getting same error.

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

2 participants