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

To implement ? #437

Open
ghost opened this issue Jul 28, 2017 · 1 comment
Open

To implement ? #437

ghost opened this issue Jul 28, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 28, 2017

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([])
@lunchboxsushi
Copy link

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.

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

1 participant