Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

thorax-seed not working out of the box- no views rendered and error in Chrome console #19

Open
lukebond opened this issue Sep 12, 2013 · 9 comments

Comments

@lukebond
Copy link

When following the getting started with thorax-seed instructions (here: https://github.com/jeffHoltStevenson/thorax-seed) I'm unable to get anything to render.

Steps to reproduce:
$ git clone git://github.com/walmartlabs/thorax-seed.git thorax && cd thorax
$ npm install
$ npm start
$ grunt generate:view:todos/index
Add "": "index" to routes in lumbar.json as per instructions.
Add index with Application.setView() to todos.js as per instructions.
Put something in templates/todos/index.handlebars and check the browser to see if there is any output.

For me, there isn't.
If I follow the instructions in the screencast I get the same result (which is of course because the instructions are the same).

Also, I notice that setting the application title in lumbar.json doesn't change it in public/index.html.

When I check the console in Chrome I notice the following error:

Uncaught TypeError: Cannot read property 'modules' of undefined base.js:20648
GET http://localhost:8000/modules/thorax.js.map 404 (Not Found) :8000/modules/thorax.js.map:1

It seems something is up! This is my first time using Thorax so I'm not really sure where to start debugging it myself.

I'm running on Ubuntu 12.10 with node.js vesrion 0.10.13.

@logicmason
Copy link

I'm also working along from the seed. At the point at which "hello world" should be visible (2m55s into the video tutorial), nothing renders and the following errors are in the console:

GET http://localhost:8000/modules/thorax.js.map 404 (Not Found)

Uncaught TypeError: Cannot read property 'modules' of undefined
module.exports.initBackboneLoader

@oliyoung
Copy link

This fixes the modules issue #17, the js.map not found is a noisy warning, it's not causing a problem.

@glockjt
Copy link

glockjt commented Oct 1, 2013

I am having this same problem. How do I fix this?

@ChadMartinson
Copy link

Issue #17 did not fix this issue for me. I am having the same problem. I have tried it with Ubuntu, Windows 7 and Windows 8. Is there some other work around?

@eriktrom
Copy link

@ChadMartinson one option, until this is fixed or a new video is published, is to use https://github.com/walmartlabs/generator-thorax -- when running the generator don't choose the 'chef's choice' (first option) -- this will move you through the extended options for generating a new thorax app where you'll find the option to generate a 'todo list' app towards the end of the prompts -- upon generating the 'todo list' app you'll have the same app as is provided in the video tutorial, but using require js instead of lumbar

feel free to file an issue with https://github.com/walmartlabs/generator-thorax if you find issues or have confusion if you decide to head down this road.. also, thankyou for the reminder, an updated video tutorial looks to be a priority

/cc @eastridge

@ChadMartinson
Copy link

Hey thanks Erik. I did end up following your suggestion. It took some doing
but I was able to build a working todo app.

I am new to web development and JavaScript. So on a personal level this was
a monumental task.

The instructions weren't clear in places and incomplete. I would like to be
the one to update your tutorial from a beginners pov.

I do love thorax though and look forward to building some fun things.

@ChadMartinson https://github.com/ChadMartinson one option, until this is
fixed or a new video is published, is to use
https://github.com/walmartlabs/generator-thorax -- when running the
generator don't choose the 'chef's choice' (first option) -- this will move
you through the extended options for generating a new thorax app where
you'll find the option to generate a 'todo list' app towards the end of the
prompts -- upon generating the 'todo list' app you'll have the same app as
is provided in the video tutorial, but using require js instead of lumbar

feel free to file an issue with
https://github.com/walmartlabs/generator-thorax if you find issues or have
confusion if you decide to head down this road.. also, thankyou for the
reminder, an updated video tutorial looks to be a priority

/cc @eastridge https://github.com/eastridge


Reply to this email directly or view it on
GitHubhttps://github.com//issues/19#issuecomment-32091145
.

@eastridge
Copy link
Contributor

@Trombom Let's enable the hello world as the default for chef's choice if it isn't already

@sberryman
Copy link

What is the preferred way to get started these days? I would like to start developing against the latest version. I see the thorax-seed is updated to use the latest version but it doesn't appear that generator-thorax is on 3.0.x. I'm seeing "thorax": "~2.0" in bower.json.

The generator appears to have some nice benefits such as using Karma Sauce Launcher, some pre-built grunt tasks for production builds, testing, etc.

@ChadMartinson
Copy link

Personally, I would use the generator. It works out of the box. I have
never had a problem with child views or child collections.

Use the sub-generators for your router, models, collections, and views.
On Jun 14, 2014 1:20 AM, "Shaun Berryman" notifications@github.com wrote:

What is the preferred way to get started these days? I would like to start
developing against the latest version. I see the thorax-seed is updated
to use the latest version but it doesn't appear that generator-thorax is
on 3.0.x. I'm seeing "thorax": "~2.0" in bower.json.

The generator appears to have some nice benefits such as using Karma Sauce
Launcher, some pre-built grunt tasks for production builds, testing, etc.


Reply to this email directly or view it on GitHub
#19 (comment)
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

8 participants