Using knockout in an electron app (when html loads KO via the script tag)?

534 views
Skip to first unread message

falcon

unread,
May 10, 2016, 9:57:21 PM5/10/16
to KnockoutJS
I have a web page which uses KO normally. I just tried to load it in electron (http://electron.atom.io) I'm getting an error "Cannot find module 'knockout.'

This is likely due to require(...) vs <script src=...> difference between node apps and web apps. I'm not enough of a javascript/web developer to know how to resolve this. Any ideas?

Here is the ticket I created:
Reply all
Reply to author
Forward
0 new messages