systemjs / plugin-babel

SystemJS Babel Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doing jspm install doesn't seem to also install the needed buffer@4.9.1

davis opened this issue · comments

on an unrelated note, in the releases the version is 0.14.0, but the one installed during jspm install is 0.0.14

Just about to report the same, 0.0.13 is fine but 0.0.14 gives us this error when used with intern-systemjs-loader.

Ran into the same issue, using 0.0.13 works for the time being.

A temporary workaround: jspm install npm:buffer@4.9.1

Getting the same error, but I'm not using JSPM, and manually installing buffer@4.9.1 doesn't seem to solve the issue.

http://localhost:3000/node_modules/buffer@4.9.1
Error: XHR error (404 Not Found) loading http://localhost:3000/node_modules/buffer@4.9.1
    at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:3000/node_modules/zone.js/dist/zone.js:636:29)
    at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:225:37)
    at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:125:47)
    at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:293:33)
Error loading http://localhost:3000/node_modules/buffer@4.9.1 as "npm:buffer@4.9.1" from http://localhost:3000/node_modules/systemjs-plugin-babel/systemjs-babel-browser.js
Unable to load transpiler to transpile http://localhost:3000/app/main.js
Error loading http://localhost:3000/app/main.js ; Zone: <root> ; Task: Promise.then ; Value: Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/node_modules/buffer@4.9.1(…) (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/node_modules/buffer@4.9.1
Error: XHR error (404 Not Found) loading http://localhost:3000/node_modules/buffer@4.9.1
    at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:3000/node_modules/zone.js/dist/zone.js:636:29)
    at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:225:37)
    at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:125:47)
    at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:293:33)
Error loading http://localhost:3000/node_modules/buffer@4.9.1 as "npm:buffer@4.9.1" from http://localhost:3000/node_modules/systemjs-plugin-babel/systemjs-babel-browser.js
Unable to load transpiler to transpile http://localhost:3000/app/main.js
Error loading http://localhost:3000/app/main.js

This was a regression in SystemJS builder which has been fixed now in systemjs/builder@e888dfa.

I've published a new 0.0.15 release of the plugin with the fix.