jsstore variable not found

jsstore variable not found



I am using jsStore for indexedDB , I am getting this error .
Saying jsStore not found. How to include the jsStore variable ?.
Which file should I include and how ?



console



edit****



new error after adding the src ,says that failed to contruct worker






can elaborate your question.did you include jsstore script files in your home page?

– Jagadeesh Govindaraj
Sep 12 '18 at 4:40






yes i have included

– KICKASSBADBOY
Sep 12 '18 at 6:45






i used this <script src="https://cdn.jsdelivr.net/npm/jsstore/dist/jsstore.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/jsstore/dist/jsstore.worker.min.js"></script>

– KICKASSBADBOY
Sep 12 '18 at 6:54



<script src="https://cdn.jsdelivr.net/npm/jsstore/dist/jsstore.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/jsstore/dist/jsstore.worker.min.js"></script>






Please edit your question. Show the code and error messages as text, not as images.

– S.L. Barth
Sep 12 '18 at 7:58






cdn scripts are not allowed to run under a worker. so just run it without worker. like this - var con =new JsStore.Instance();

– Ujjwal Kumar Gupta
Sep 12 '18 at 8:41




1 Answer
1



Basically as @Ujjwal Gupta said. It needs to run under a worker , so my problem was solved by using the the non-worker JsStore syntax. That is without calling the worker



var connection = new JsStore.Instance()


var connection = new JsStore.Instance()



Do not call the JsStore Instance with worker without using Server.



Thanks for contributing an answer to Stack Overflow!



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

PHP code is not being executed, instead code shows on the page

Administrative divisions of China

Cardinality of the set of algorithms