Ember CLI with Pods

599 views Asked by At

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/

3

There are 3 answers

1
Kyle Coberly On BEST ANSWER

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.

2
Christopher Milne On

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

0
locks On

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.