Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/r-k-b/cycle-http-driver-require-example

repro steps for import / build errors occurring somewhere between jspm/systemjs and @cycle/http
https://github.com/r-k-b/cycle-http-driver-require-example

Last synced: 26 days ago
JSON representation

repro steps for import / build errors occurring somewhere between jspm/systemjs and @cycle/http

Awesome Lists containing this project

README

        

Start with this clean repo (either a fresh clone, or `git clean -fxd`)

$ npm install

$ jspm install

Fails with:

$ node ./systemjs-build.js
Build error:
[Error: ENOENT: no such file or directory, open 'C:\Users\rob\projects\cycle-http-driver-require-example\emitter.js']

Ok.. so we manually install that dependency:

$ jspm install npm:emitter

Try the build again:

$ node ./systemjs-build.js
Build error:
[Error: ENOENT: no such file or directory, open 'C:\Users\rob\projects\cycle-http-driver-require-example\reduce.js']

Install reduce & try again:

$ jspm install npm:reduce
$ node ./systemjs-build.js
Build error:
[Error: ENOENT: no such file or directory, open 'C:\Users\rob\projects\cycle-http-driver-require-example\jspm_packages\npm\@cycle\[email protected]\dist\http-driver.js']

wut

Turns out changing `jspm_packages/npm/@cycle/[email protected]/dist/cycle-http-driver.js:779` fixes this. Replace:

var _require = require('./http-driver');

with:

var _require = require('../lib/http-driver');

and try again:

$ node ./systemjs-build.js
Build complete

huzzah

----

Where do I go to fix this.