Giter Site home page Giter Site logo

lesson-carousel-starter-kit's Introduction

lesson-carousel-starter-kit's People

Contributors

andrewreedy avatar browles avatar farhadg avatar michaelobriena avatar morgantheplant avatar wgester avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lesson-carousel-starter-kit's Issues

Carousel Tutorial (Unexpected end of input / bundle.js error)

Hi,

I have forked the Carousel Tutorial following the steps from the website. Everything worked like a charm. But what I have realised is that sometimes when I start editing the files to understand how it works I get the following error in the console:

Uncaught SyntaxError: Unexpected end of input ----------------------- bundle.js:1

As soon as I refresh the browser everything starts working again. I do not get it all the time just randomly.
Any idea why this could happen?

Thanks!

data.json is a bad name

the name for this json file should reflect the payload.

images is a pretty good one.

also require('./data/data'); looks super odd

Dots.js: onSizeChange returns single value, not array

all steps after 5 throw this error: Uncaught TypeError: Cannot read property '0' of undefined.

this is because the (Dots.js line 31) onSizeChange function's size argument has a single value (for the x axis) instead of an array. the size variable is then used as an array on line 46.

bug can be fixed by changing line 46 to use "this.size" instead of "this.size[0]"

No camera

Carousel should have a camera on the root node to give the swivel depth.

"Uncaught error" in Step 4 - node does not have access to a size component

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! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.