1

I've been trying to move my Ember app across to use pods in preparation of 2.0.

I moved all the files, set the environment.js paramters and now my app shows nothing but the empty index.html. What have I done wrong?

I've attached screenshots of my setup.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

UPDATE:

So as Kyle suggested in the comments, if I move my pod directories out of /pods and into the /app, and then don't set podModulePrefix it starts working.

But how do I get everything in /pods?

I tried setting podModulePrefix to livin/app/pods, app/pods and livin/pods and nothing seems to work. I don't think I undertsand the relationship of modulePrefix and podModulePrefix and the directory name of app. Do they all need to match?

My current directory is setup like this, if it helps.

livin/ app/ pods/ index/ application/ login/ components/ styles/ public/ config/

Drew Baker
  • 14,154
  • 15
  • 58
  • 97
  • Can I see you app.js file? – Jakeii May 10 '15 at 13:00
  • @Jakeii Added a screenshot of it now. Thanks for the help! – Drew Baker May 10 '15 at 17:57
  • As a side note, I have "usePods": true" set in .ember-cli, and I just use the "ember server" command in terminal. – Drew Baker May 10 '15 at 18:17
  • hmm do you get any console errors? Do you have ember-inspector for your browser, do the routes routes, template, controllers etc. show up there? – Jakeii May 10 '15 at 18:38
  • Just added screenshots from firebug and form ember-inspector, when looking at index route. See anything unusual? It all looks normal to me. I'm using Ember-CLI 0.2.3. – Drew Baker May 10 '15 at 18:43
  • What if you drop the podModulePrefix line from your environment file entirely and place your pods in your /app folder? – Kyle Coberly May 10 '15 at 19:56
  • @KyleCoberly that worked! So it must be the wrong path setting. What is that path's structure supposed to be? It's confusing what that should be set to. – Drew Baker May 11 '15 at 03:30

3 Answers3

2

As stated in my comment, remove podModulePrefix from your environment file and throw your pods in the root of the app folder.

I've never been able to get podModulePrefix to work, and I believe the momentum is against putting your pods in a separate folder anyway. Since pods are destined to be the default folder structure in the future, having your pods in the root of your app makes more sense.

Kyle Coberly
  • 114
  • 8
  • 2
    Hey Kyle, I think you might be right. It does seem like 'podModulePrefix' is broken. Thanks for the help! – Drew Baker May 11 '15 at 18:00
0

Given the file structure in your screenshot, your pod prefix should be 'pods', not 'livin/pods'

0

If you are using 0.2.5 of ember-cli that might be why. podModulePrefix was prematurely removed in that version. Try updating to update to 0.2.6 and see if this still occurs.

locks
  • 6,537
  • 32
  • 39