Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprockets Error loading in EAK #9

Closed
joshwalsh opened this issue Mar 1, 2014 · 6 comments
Closed

Sprockets Error loading in EAK #9

joshwalsh opened this issue Mar 1, 2014 · 6 comments

Comments

@joshwalsh
Copy link
Contributor

After loading gem, bundling, running the generator, and setting up my application.js, I get the following Sprockets error:

Sprockets::FileNotFound at /
couldn't find file 'ember-devise-simple-auth/appkit'
  (in /Users/[...]/config/application.js:5)

Here's my config/application.js

//= require jquery
//= require environment
//= require ember-appkit
//= require router
//= require ember-devise-simple-auth/appkit
//= require_self
//= require_tree ./adapters
//= require_tree ../app
//= require_tree ./initializers

require('ember-devise-simple-auth');

window.App = require('app').default.create({
  deviseEmberAuth: {
    signInPath: "/sign-in", 
    deviseSignInPath: "/users/sign_in",
    deviseSignOutPath: "/users/sign_out",
    currentSessionPath: "/sessions/current"
  }
});
@joefiorini
Copy link
Contributor

Did you bower install ember-devise-simple-auth?

@joshwalsh
Copy link
Contributor Author

I'll try that. I wasn't grunt/bower, and the readme didn't mention it. If that's required, might be useful to include in readme. I expected the gem to package it.

@joshwalsh
Copy link
Contributor Author

After running:

$ bower install ember-devise-simple-auth
bower not-cached    git://github.com/d-i/ember-devise-simple-auth-bower.git#*
bower resolve       git://github.com/d-i/ember-devise-simple-auth-bower.git#*
bower download      https://github.com/d-i/ember-devise-simple-auth-bower/archive/v0.3.0.tar.gz
bower extract       ember-devise-simple-auth#* archive.tar.gz
bower resolved      git://github.com/d-i/ember-devise-simple-auth-bower.git#0.3.0
bower install       ember-devise-simple-auth#0.3.0

ember-devise-simple-auth#0.3.0 bower_components/ember-devise-simple-auth

I get the same error.

@joefiorini
Copy link
Contributor

Oh right, I did not include bower setup instructions in the README. This post documents a setup that's pretty similar to what we use in other apps.

@joshwalsh
Copy link
Contributor Author

That did it. Thanks.

@joefiorini
Copy link
Contributor

np, I updated the readme to reflect this as well.

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

No branches or pull requests

2 participants