Drew Baker
Drew Baker

Reputation: 14430

Ember CLI with Pods

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/

Upvotes: 1

Views: 621

Answers (3)

locks
locks

Reputation: 6577

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.

Upvotes: 0

Kyle Coberly
Kyle Coberly

Reputation: 114

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.

Upvotes: 2

Christopher Milne
Christopher Milne

Reputation: 938

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

Upvotes: 0

Related Questions