6

I try to run ng-bootstrap for angular 2 and I receive an error to install ng-bootstrap. I believe that is a path problem. This 404 error occur when i try to access page, and on start npm. When angular ng-bootstrap try to load I receive a 404 error on import module:

[1] 16.08.20 20:01:00 404 GET /@ng-bootstrap/ng-bootstrap

But this module is inside node_modules. Thanks

3
  • You can have look at the systemjs.config.js file at angular.io/docs/ts/latest/quickstart.html. Commented Aug 21, 2016 at 0:23
  • I try to solve and 404 errors has dismissed but the page does not load, stay in loading. Commented Aug 21, 2016 at 20:26
  • Can you show exactly the errors by using console tab in the browser? Commented Aug 22, 2016 at 3:22

4 Answers 4

8

First you should install using below command

npm install --save @ng-bootstrap/ng-bootstrap

Refer https://ng-bootstrap.github.io/#/getting-started

Follow this issue link, it has app module and system config reference and what he did wrong

in your app.module.ts

import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
and
imports:      [ NgbModule]

in systemjs.config.js

**var map:** '@ng-bootstrap':          'node_modules/@ng-bootstrap'

**var packages:** '@ng-bootstrap/ng-bootstrap':       { main: 'index.js', defaultExtension: 'js' }
Sign up to request clarification or add additional context in comments.

Comments

0

You should look at this issue, it provides a good insight on how to configure ngBootstrap with systemJS

Comments

0

I had the same issue, solved with a few changes to the systemjs.config.js Getting started Angular2 RC5 with ng-bootstrap 404 Error

Comments

0

check out my learning angular 2 project, I have just make some demos with angular 2 and ng-bootstrap. https://github.com/beginor/learning-angular2

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.