the-refinery/ember-devise-simple-auth

Sprockets Error loading in EAK

Closed this issue · 6 comments

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"
  }
});

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

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.

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.

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.

That did it. Thanks.

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