dougludlow / ng2-bs3-modal

Angular Bootstrap 3 Modal Component
http://dougludlow.github.io/ng2-bs3-modal/
ISC License
261 stars 133 forks source link

Unable to Load node_modules//ng2-bs3-modal/ng2-bs3-modal.js #232

Open WPrudhvee opened 6 years ago

WPrudhvee commented 6 years ago

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:62838/traceur.js

zone.js:388 Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:62838/traceur.js Error: XHR error (404 Not Found) loading http://localhost:62838/traceur.js at XMLHttpRequest.wrapFn (http://localhost:62838/node_modules/zone.js/dist/zone.js:1166:39) at ZoneDelegate.invokeTask (http://localhost:62838/node_modules/zone.js/dist/zone.js:421:31) at Zone.runTask (http://localhost:62838/node_modules/zone.js/dist/zone.js:188:47) at ZoneTask.invokeTask [as invoke] (http://localhost:62838/node_modules/zone.js/dist/zone.js:496:34) at invokeTask (http://localhost:62838/node_modules/zone.js/dist/zone.js:1517:14) at XMLHttpRequest.globalZoneAwareCallback (http://localhost:62838/node_modules/zone.js/dist/zone.js:1543:17) Error loading http://localhost:62838/traceur.js Unable to load transpiler to transpile http://localhost:62838/node_modules/ng2-bs3-modal/ng2-bs3-modal.js Error loading http://localhost:62838/node_modules/ng2-bs3-modal/ng2-bs3-modal.js as "ng2-bs3-modal" from http://localhost:62838/app/app.module.js at XMLHttpRequest.wrapFn (http://localhost:62838/node_modules/zone.js/dist/zone.js:1166:39) at ZoneDelegate.invokeTask (http://localhost:62838/node_modules/zone.js/dist/zone.js:421:31) at Zone.runTask (http://localhost:62838/node_modules/zone.js/dist/zone.js:188:47) at ZoneTask.invokeTask [as invoke] (http://localhost:62838/node_modules/zone.js/dist/zone.js:496:34) at invokeTask (http://localhost:62838/node_modules/zone.js/dist/zone.js:1517:14) at XMLHttpRequest.globalZoneAwareCallback (http://localhost:62838/node_modules/zone.js/dist/zone.js:1543:17) Error loading http://localhost:62838/traceur.js Unable to load transpiler to transpile http://localhost:62838/node_modules/ng2-bs3-modal/ng2-bs3-modal.js Error loading http://localhost:62838/node_modules/ng2-bs3-modal/ng2-bs3-modal.js as "ng2-bs3-modal" from http://localhost:62838/app/app.module.js

WPrudhvee commented 6 years ago

"dependencies": { "@angular/animations": "^5.2.2", "@angular/common": "^5.2.2", "@angular/compiler": "^5.2.2", "@angular/core": "^5.2.2", "@angular/forms": "^5.2.2", "@angular/http": "^5.2.2", "@angular/platform-browser": "^5.2.2", "@angular/platform-browser-dynamic": "^5.2.2", "@angular/platform-server": "^5.2.2", "@angular/router": "^5.2.2", "angular-in-memory-web-api": "~0.3.0", "bootstrap": "4.0.0", "jquery": "^3.3.1", "core-js": "^2.4.1", "ngx-bootstrap": "^2.0.0-rc.0", "rxjs": "^5.4.2", "systemjs": "0.19.40", "zone.js": "^0.8.14" }, "devDependencies": { "@angular/cli": "^1.6.3", "@angular/compiler-cli": "^5.2.2", "@angular/language-service": "^4.2.4", "@types/jasmine": "~2.5.53", "@types/jasminewd2": "~2.0.2", "@types/node": "~6.0.60", "canonical-path": "0.0.2", "codelyzer": "~3.2.0", "concurrently": "^3.2.0", "jasmine-core": "~2.6.2", "jasmine-spec-reporter": "~4.1.0", "karma": "~1.7.0", "karma-chrome-launcher": "~2.1.1", "karma-cli": "~1.0.1", "karma-coverage-istanbul-reporter": "^1.2.1", "karma-jasmine": "~1.1.0", "karma-jasmine-html-reporter": "^0.2.2", "lite-server": "^2.2.2", "lodash": "^4.16.4", "ng2-bs3-modal": "^0.13.0", "protractor": "~5.1.2", "rimraf": "^2.6.2", "tslint": "5.9.1", "ts-node": "^4.1.0", "typescript": "^2.4.2" }, "repository": {} }

WPrudhvee commented 6 years ago

systemjs.config.js

        // other libraries
        'rxjs': 'npm:rxjs',
        'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js',
        'ng2-bs3-modal': 'npm:ng2-bs3-modal'
    },
    // packages tells the System loader how to load when no filename and/or no extension
    packages: {
        app: {
            main: 'main.js',
            defaultExtension: 'js'                 
        },
        rxjs: {
            defaultExtension: 'js'
        },
        'ng2-bs3-modal': {
            main: 'ng2-bs3-modal.js',
            defaultExtension: 'js'
        }

    }
});

})(this);

sagaraher commented 6 years ago

I have also this same problem when trying to integrate angular 2 with web api visual studio 2017

error in browser console is

Error: (SystemJS) Unexpected token < SyntaxError: Unexpected token < at eval () Evaluating http://localhost:62334/traceur Error loading http://localhost:62334/traceur Unable to load transpiler to transpile http://localhost:62334/node_modules//ng2-bs3-modal/ng2-bs3-modal.js Error loading http://localhost:62334/node_modules//ng2-bs3-modal/ng2-bs3-modal.js as "ng2-bs3-modal" from http://localhost:62334/app/app.module.js at eval () Evaluating http://localhost:62334/traceur Error loading http://localhost:62334/traceur Unable to load transpiler to transpile http://localhost:62334/node_modules//ng2-bs3-modal/ng2-bs3-modal.js Error loading http://localhost:62334/node_modules//ng2-bs3-modal/ng2-bs3-modal.js as "ng2-bs3-modal" from http://localhost:62334/app/app.module.js

Please help me Thanks

nishant3150 commented 6 years ago

I am facing the same issue i.e. traceur not found with angular 2.

wartab commented 6 years ago

That is an error message I used to get a lot when using SystemJS. What usually helps in that case is to delete your node_modules folder and installing your dependencies again. I noticed the cause of this was usually when I was testing Ahead of Time compilation while having the Just in Time version running.