Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Added FAQ about Windows support and a troubleshooting item about DOM …
Browse files Browse the repository at this point in the history
…dependencies on the server.
  • Loading branch information
Joe Catera committed Feb 7, 2013
1 parent 5962233 commit e960730
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/dev_guide/faq/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ General

* :ref:`What languages can I use to develop mojits? <moj_langs>`
* :ref:`Can I work on Mojito applications offline? <moj_offline>`
* :ref:`Does Mojito work in a Windows environment? <moj_windows>`
* :ref:`Do I have to restart Mojito to see updates that I've made to my application? <moj_nodemon>`
* :ref:`Is the Mojito Y instance persistent across requests? <moj_req_persistent>`
* :ref:`Does Mojito support lazy loading? <moj_lazyloading>`
Expand Down Expand Up @@ -128,6 +129,15 @@ General

------------

.. _moj_windows:
.. topic:: **Does Mojito work in a Windows environment?**

Unfortunately, Mojito is only supported on Unix-based systems. We hope to support
Mojito on Windows in the future, so please check the
`Mojito Releases Notes <`https://github.com/yahoo/mojito/wiki>`_ on GitHub for the
latest updates.


.. _moj_nodemon:
.. topic:: **Do I have to restart Mojito to see updates that I've made to my application?**

Expand Down
26 changes: 26 additions & 0 deletions docs/dev_guide/reference/mojito_troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Issues
to start Mojito? <eaddriuse_err>`
* :ref:`When I execute child mojits with "composite.execute", the views are being rendered,
but the binders are not executed. Why? <binder_not_executing>`
* :ref`Why am I getting a DOM dependency error on the server similar to the one below?
How do I debug this type of error? <dom_dependency>`


Solutions
Expand Down Expand Up @@ -193,5 +195,29 @@ Try doing the following:
ac.done(data, meta);
});
...
.. _dom_dependency:

**Q:** *Why am I getting a DOM dependency error on the server similar to the one below?
How do I debug this type of error?*

::

TypeError: Cannot read property 'documentElement' of null at Object.YUI.add.requires [as fn]

(/home/user1/my_app/node_modules/mojito/node_modules/yui/dom-base/dom-base-min.js:7:50)

at proto._attach

(/home/user1/my_app/node_modules/mojito/node_modules/yui/yui-nodejs/yui-nodejs.js:701:33)

**A:**
Your application has modules that depend on DOM APIs that aren't available in
a Node.js-environment. To find those modules, try using the commands
``mojito gv --trace dom`` and ``mojito gv --trace dom-base``, which
create a graph of the module dependencies.




0 comments on commit e960730

Please sign in to comment.