{"action":"created","issue":{"url":"https://api.github.com/repos/knockout/knockout/issues/2051","repository_url":"https://api.github.com/repos/knockout/knockout","labels_url":"https://api.github.com/repos/knockout/knockout/issues/2051/labels{/name}","comments_url":"https://api.github.com/repos/knockout/knockout/issues/2051/comments","events_url":"https://api.github.com/repos/knockout/knockout/issues/2051/events","html_url":"https://github.com/knockout/knockout/issues/2051","id":153678676,"number":2051,"title":"[Electron] module.js:339 Uncaught Error: Cannot find module 'knockout'","user":{"login":"falconair","id":365542,"avatar_url":"https://avatars.githubusercontent.com/u/365542?v=3","gravatar_id":"","url":"https://api.github.com/users/falconair","html_url":"https://github.com/falconair","followers_url":"https://api.github.com/users/falconair/followers","following_url":"https://api.github.com/users/falconair/following{/other_user}","gists_url":"https://api.github.com/users/falconair/gists{/gist_id}","starred_url":"https://api.github.com/users/falconair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falconair/subscriptions","organizations_url":"https://api.github.com/users/falconair/orgs","repos_url":"https://api.github.com/users/falconair/repos","events_url":"https://api.github.com/users/falconair/events{/privacy}","received_events_url":"https://api.github.com/users/falconair/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-08T21:29:22Z","updated_at":"2016-05-09T19:03:49Z","closed_at":null,"body":"While trying to load an html page in Atom's Electron framework (http://electron.atom.io), I get the following error on the line here I load knockout-3.4.0.js:\r\n\r\n```\r\nUncaught Error: Cannot find module 'knockout'Module._resolveFilename @ module.js:339\r\n  Module._load @ module.js:290\r\n  Module.require @ module.js:367\r\n  require @ internal/module.js:16\r\n  o @ knockout-projections.1.1.0-pre.min.js:10\r\n  (anonymous function) @ knockout-projections.1.1.0-pre.min.js:10\r\n  (anonymous function) @ knockout-projections.1.1.0-pre.min.js:10\r\n```\r\n\r\nPerhaps this is the same problem as this:\r\nhttp://stackoverflow.com/questions/32621988/electron-jquery-is-not-defined\r\n\r\nFor jquery, I can (and did) set window.$ and window.jQuery on the onload attribute of the script tag. How can I resolve this for knockout? I would have to set ko, ViewModel, perhaps bunch of other stuff?"},"comment":{"url":"https://api.github.com/repos/knockout/knockout/issues/comments/217958074","html_url":"https://github.com/knockout/knockout/issues/2051#issuecomment-217958074","issue_url":"https://api.github.com/repos/knockout/knockout/issues/2051","id":217958074,"user":{"login":"sumitkm","id":578882,"avatar_url":"https://avatars.githubusercontent.com/u/578882?v=3","gravatar_id":"","url":"https://api.github.com/users/sumitkm","html_url":"https://github.com/sumitkm","followers_url":"https://api.github.com/users/sumitkm/followers","following_url":"https://api.github.com/users/sumitkm/following{/other_user}","gists_url":"https://api.github.com/users/sumitkm/gists{/gist_id}","starred_url":"https://api.github.com/users/sumitkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumitkm/subscriptions","organizations_url":"https://api.github.com/users/sumitkm/orgs","repos_url":"https://api.github.com/users/sumitkm/repos","events_url":"https://api.github.com/users/sumitkm/events{/privacy}","received_events_url":"https://api.github.com/users/sumitkm/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T19:03:49Z","updated_at":"2016-05-09T19:03:49Z","body":"Hi, I am not sure if helps directly, but I have an Electron application you can refer to [here](https://github.com/sumitkm/electricedit/tree/master/app/ui) It uses Require JS to load KO for the UI but loads jQuery via the hardcoded technique you mentioned. "}}