To implement ?
Opened this issue · 1 comments
How I can implement that framework to my own project, because I try with required but it gives me error, and all routes are right.
Uncaught Error: Module name "virtual-hyperscript/index.js" has not been loaded yet for context: _. Use require([])
just so you're not wasting your time the code snippet is from requirebin
it appears they might be using some sort of module injection via require.js
if you need to use this lib make sure you set it up correctly in your build solution (gulp,webpack,grunt) to bring in their libs first.
or just simply add their scripts to load on the page first if you are just testing via <script> tags
so it is exposed for your testing.
otherwise it's mostly recommended to use the mentioned built tools to package your lib + theirs.
browsers don't have native capabilities to use modules via require/import/using however ES2015 "import" is being added slowly to some browsers you can read more here
hopefully that helps.