Giter Site home page Giter Site logo

ember-cli-cookie's People

Contributors

achambers avatar alexrothenberg avatar bleib1dj avatar chrisgame avatar lolmaus avatar mikepmunroe avatar noopkat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ember-cli-cookie's Issues

Fail to set this up with Ember-cli

As README says:

I ran:

npm install --save-dev ember-cli-cookie

And then I created a file named ember-cookie.js in /app/initializers in which the initializers would be loaded, and put

/*
/app/initializers/ember-cookie.js */
export default {
  name: 'ember-cookie',
  after: ['cookie'],
  initialize: function(container, app) {
    app.inject('controller', 'cookie', 'cookie:main');
  }
}

And console outputed:

Error: Assertion Failed: No application initializer named 'cookie'
runvendor.js:13376
applyvendor.js:31555
runvendor.js:30173
runInitializevendor.js:15613
firevendor.js:3237
fireWithvendor.js:3349
readyvendor.js:3561
completedvendor.js:3592
me:23

I'm new to EmbeJS, did I misunderstand anything?

How to set / check expiration? Also example typo

Hello,

Your example got .get() is missing a token = I think on line this.cookie.get('my-key');

Also, how can I pass in an expiration date / time and check it? Is that just e.g. this.cookie.set('foo', 'bar', {expires: 1})?

postinstall fails when `bower` isn't in PATH

ember-cli-cookie seems to be making an assumption about where bower is installed, but I can't find where to fix this. I'm getting an error if I'm using a project-specific bower instead, e.g. ./node_modules/.bin/bower.

Binary is fine; exiting
npm ERR! Linux 3.16.0-24-generic
npm ERR! argv "node" "/home/nnyby/node_modules/.bin/npm" "install"
npm ERR! node v0.10.33
npm ERR! npm  v2.1.4
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: `bower install`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the ember-cli-cookie package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls ember-cli-cookie
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/nnyby/src/wacep/media/WeatherRoulette/npm-debug.log

Uncaught Error: Assertion Failed: The initializer 'token-cookie' has already been registered

I'm trying to use this plugin in my app, but I'm getting the above error when I try to inject the cookie into my routes.

This is my initializer, at app/initializers/token-cookie.js

import Ember from 'ember';

export default Ember.Application.initializer({
  name: "token-cookie",
  after: ['cookie'],
  initialize: function(container, application) {
    application.inject('route', 'cookie', 'cookie:main');
  }
});

it's copied almost directly from the npm page, but it's blowing up immediately.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.