-
Notifications
You must be signed in to change notification settings - Fork 17
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
"Uncaught error" in Step 4 - node does not have access to a size component #22
Comments
Discovered this works .... it's kind of a jenky solution, because the positioning of the Arrow components is now done in the constructor, and is hard-coded in. 👎 But, changing Arrow.js and Carousel.js to the following is working for now: /* var DOMElement = require('famous/dom-renderables/DOMElement'); // Altered to match the (working) method signatures of Pager.js and Dots.js function Arrow(node, options) {
} module.exports = Arrow; /* var FamousEngine = require('famous/core/FamousEngine'); function Carousel(selector, data) {
} function _positionComponents() {
} module.exports = Carousel; |
I am unable to render the arrow components as written in Step 4 (I copied and pasted the code from the lesson exactly to make sure it wasn't a typing error on my part). Nothing renders in the browser, and the console shows the following error and stack trace:
Node.js:537 Uncaught Error: This node does not have access to a size component
getSizeMode @ Node.js:537
DOMElement @ DOMElement.js:79
Arrow @ Arrow.js:7
Carousel @ Carousel.js:16
56../carousel/Carousel @ index.js:10
s @ _prelude.js:1
e @ _prelude.js:1
(anonymous function) @ _prelude.js:1
I did move on to steps 5 and 6 and noticed that the Pager and Dots components will render, if I comment out all references to Arrows.
Being new to this community in general I apologize for not having any idea on how to resolve this, but please let me know if there's any other info I can provide to assist in troubleshooting etc. Any assistance in completing the Arrow phase of this tutorial would be very much welcomed and appreciated! :)
The text was updated successfully, but these errors were encountered: