wirejs

Running a RequireJS/WireJS app using PhantomJS

笑着哭i 提交于 2019-12-22 09:14:32
问题 I'm trying to execute a basic app that uses RequireJS (2.1.8), WireJS (0.10.2) and PhantomJS (1.9.2): When running the app using PhantomJS (this is my goal), WireJS fails to load (see error below). When running the app using Chrome, it completes properly. Please help to point out the missing part for WireJS to run properly under PhantomJS. Following are my app files. 1) app.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>SaphirJS.core</title> <script data-main="app"

wirejs and dojo using the dojo build system

隐身守侯 提交于 2019-12-12 04:25:20
问题 I have a dojo application which uses wirejs for dependency injection. When I try to build the application, I'm getting dependency errors on the 'when' and 'meld' modules. Like the following : error(311) Missing dependency. module: wire/dojo/events; dependency: when error(311) Missing dependency. module: wire/dojo/pubsub; dependency: meld error(311) Missing dependency. module: wire/dom/render; dependency: when error(311) Missing dependency. module: wire/lib/plugin-base/dom; dependency: when My

wirejs and dojo using the dojo build system (2)

你离开我真会死。 提交于 2019-12-07 11:37:23
问题 (This is the same question as wirejs and dojo using the dojo build system, but with more detail about the problem and tried solutions. The duplicate question is created because this was suggested in a comment). When building a dojo application that uses wire, the dojo loader throws an undefinedModule Error for "./lib/context" that we can't get rid of. I added wire to a large, working dojo project using a git submodule. It turned out that also cujojs when and cujojs meld are required. I added

wirejs and dojo using the dojo build system (2)

帅比萌擦擦* 提交于 2019-12-05 14:36:29
(This is the same question as wirejs and dojo using the dojo build system , but with more detail about the problem and tried solutions. The duplicate question is created because this was suggested in a comment). When building a dojo application that uses wire, the dojo loader throws an undefinedModule Error for "./lib/context" that we can't get rid of. I added wire to a large, working dojo project using a git submodule. It turned out that also cujojs when and cujojs meld are required. I added them as a git submodule too. In this project, libraries are not next to the application folder ( src

Running a RequireJS/WireJS app using PhantomJS

喜夏-厌秋 提交于 2019-12-05 14:26:24
I'm trying to execute a basic app that uses RequireJS (2.1.8), WireJS (0.10.2) and PhantomJS (1.9.2): When running the app using PhantomJS (this is my goal), WireJS fails to load (see error below). When running the app using Chrome, it completes properly. Please help to point out the missing part for WireJS to run properly under PhantomJS. Following are my app files. 1) app.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>SaphirJS.core</title> <script data-main="app" src="../../../target/deps/require-0.0.1/2.1.8/require.js"> </script> </head> <body> </body> </html> 2)