Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Usage of JSPM Installed Version Fails #31

Open
vanthome opened this issue Feb 13, 2016 · 0 comments
Open

Usage of JSPM Installed Version Fails #31

vanthome opened this issue Feb 13, 2016 · 0 comments

Comments

@vanthome
Copy link

I was happy to see that this lib supports JSPM, so I tried to install and use it:

import mq4HoverShim from 'mq4-hover-shim';

Unfortunately, that fails early with this:

:3000/jspm_packages/npm/[email protected]/dist/browser/mq4-hover-shim.js:59 Uncaught TypeError: $ is not a function$ @ system.js:4
system.js:4 Uncaught Uncaught TypeError: $ is not a function
    Evaluating http://localhost:3000/jspm_packages/npm/[email protected]/dist/browser/mq4-hover-shim.js$ @ system.js:4
localhost/:1 Uncaught (in promise) Uncaught Uncaught TypeError: $ is not a function
    Evaluating http://localhost:3000/jspm_packages/npm/[email protected]/dist/browser/mq4-hover-shim.js
    Evaluating http://localhost:3000/jspm_packages/npm/[email protected]
    Error loading http://localhost:3000/boot.js

I tried to fix it with some weird overrides, but could not get it to work.
I think that system.js detects the format wrongly of the file dist/browser/mq4-hover-shim
because I see this in the header:

"format global";
"deps jquery";
'use strict';

after installing it. Any idea?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant