sergei-maertens / django-systemjs

MIT License
42 stars 5 forks source link

error during bundling #24

Closed davis closed 8 years ago

davis commented 8 years ago

Hi,

I was running into errors trying to bundle the main.js could you let me know what I could be doing wrong?

Repro:

git clone git@github.com:sergei-maertens/django-systemjs.git django-systemjs-fork
cd django-system-fork/example/jspm_0_17
npm install
node_modules/jspm/jspm.js install
node_modules/jspm/jspm.js bundle jspm_0_17/main.js staticfiles/SYSTEMJS/bundles/main.js -wid

Error msg:

jspm bundle jspm_0_17/main.js staticfiles/SYSTEMJS/bundles/main.js -wid
     Building the bundle tree for jspm_0_17/main.js...

err  Error on fetch for jspm_0_17/main.js at file:///Users/davis/github/django-systemjs-fork/example/jspm_0_17/staticfiles/js/main.js
  Error: ENOENT: no such file or directory, open '/Users/davis/github/django-systemjs-fork/example/jspm_0_17/staticfiles/js/main.js'
    at Error (native)
sergei-maertens commented 8 years ago

You forgot a collectstatic before the systemjs_bundle :)

On Sep 13, 2016 2:02 AM, "Davis Kim" notifications@github.com wrote:

Hi,

I was running into errors trying to bundle the main.js could you let me know what I could be doing wrong?

Repro:

git clone git@github.com:sergei-maertens/django-systemjs.git django-systemjs-fork cd django-system-fork/example/jspm_0_17 npm install node_modules/jspm/jspm.js install node_modules/jspm/jspm.js bundle jspm_0_17/main.js staticfiles/SYSTEMJS/bundles/main.js -wid

Error msg:

jspm bundle jspm_0_17/main.js staticfiles/SYSTEMJS/bundles/main.js -wid Building the bundle tree for jspm_0_17/main.js...

err Error on fetch for jspm_0_17/main.js at file:///Users/davis/github/django-systemjs-fork/example/jspm_0_17/staticfiles/js/main.js Error: ENOENT: no such file or directory, open '/Users/davis/github/django-systemjs-fork/example/jspm_0_17/staticfiles/js/main.js' at Error (native)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sergei-maertens/django-systemjs/issues/24, or mute the thread https://github.com/notifications/unsubscribe-auth/AFQ01tzHRocXynSgKP8TnfqV1C2W4uvUks5qpegVgaJpZM4J7KOi .

davis commented 8 years ago

ah. awesome. thank you!