Forum Discussion
MathNotermans-9
4 years agoCommunity Member
How to add jQuery or anyother external Javascript Library to Storyline
As this question pops up every now and then...i created a post i can link too. A few options to add jQuery to Storyline ( 3, 360... any version ) manually. You can add these lines to the html t...
AndrewMcCask133
4 years agoCommunity Member
I am attempting to use method 1, above, to add the fuse.js library. Hashing at srihas.org gives this code, which I am then adding to the index.html file just above the </head> tag.
When my script includes the line import Fuse from 'fuse.js' it will not run and console indicates Uncaught SyntaxError: Cannot use import statement outside a module. Changing the line to const Fuse =require('fuse.js'); gives the same error.
Suggestions?
<script src="https://cdn.jsdelivr.net/npm/fuse.js@6.5.3" integrity="sha384-TuaUWxocoApLRRbyrqbi39IZ5NEOZ6ukDXzbC/xiyzCe2wADliyXsO42shDI43rf" crossorigin="anonymous"></script>