These are chat archives for systemjs/systemjs

15th
Jun 2015
Maeoll Kim
@abyss-outpost
Jun 15 2015 01:03
I’m getting a funky error using "import from”: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://code.famo.us/famous-angular/latest/famous-angular.js. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
Dave Ackerman
@dmackerman
Jun 15 2015 14:12
i’m trying to use HubSpot/drop in my project, and when I try to import it, it says it can’t find tether.js - but I look at the file it’s importing and everything is already declared there
I think I need an overide somewhere.
Dave Ackerman
@dmackerman
Jun 15 2015 14:21
example being, in the drop.js code it requires “tether” - so this means I need to have a map entry in my system.config for tether to point to the correct thing?
(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    define(["tether"], factory);
  } else if (typeof exports === 'object') {
    module.exports = factory(require('tether'));
  } else {
    root.Drop = factory(root.Tether);
  }
}(this, function(Tether) {
Dave Ackerman
@dmackerman
Jun 15 2015 14:28
got it :smile: