Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use this with npm? #47

Open
danieljvdm opened this issue Oct 12, 2016 · 2 comments
Open

How do I use this with npm? #47

danieljvdm opened this issue Oct 12, 2016 · 2 comments

Comments

@danieljvdm
Copy link

I'm importing it like: import jic from 'j-i-c'; but I get this error when trying to use it: _jIC2.default.compress is not a function

@humanismusic
Copy link

I had the same problem. The NPM version doesn't have 'module.exports' for some reason so you can't require it. Either dive into the node_modules folder and find the JIC.js file and replace 'var jic =' with 'module.exports =' or else copy the code and place into your script like any other function.

@shahz5678
Copy link

@weislanes @danieljvdm is it possible to import it using, <script type="text/javascript" src="{{ STATIC_URL }}js/JIC.min.js"></script> in my HTML?

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

No branches or pull requests

3 participants