Greg Gum
Greg Gum

Reputation: 37919

How to resolve loading error

I am learning JSPM and trying to get it to work using the test code.

However, I have not been able to get this work. The error I get in the console is:

Uncaught (in promise) Error: XHR error (404 Not Found) loading http://localhost:5172/none.js(…)

The network tab shows a 404 error on none.js.

This is the line of code:

import {bootstrap} from './bootstrap';

I don't understand why this would not be found. The network tab shows that main.js is found an downloaded, but not bootstrap. This makes no sense. This is the bootstrap file which is in the 'lib' directory.

Upvotes: 1

Views: 620

Answers (1)

caasjj
caasjj

Reputation: 1363

If you're using jspm, then you should have globally and locally installed jspm, and then done jspm init to create your project and then jspm install bootstrap. That should work.

See if this helps: https://github.com/caasjj/jspm-tut.git

Upvotes: 1

Related Questions