Sprockets Error loading in EAK
Closed this issue · 6 comments
joshwalsh commented
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 commented
Did you bower install ember-devise-simple-auth
?
joshwalsh commented
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 commented
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 commented
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 commented
That did it. Thanks.
joefiorini commented
np, I updated the readme to reflect this as well.