Comments (12)
You need to do an app.import in the broccoli file
Am 30.09.2014 um 22:37 schrieb Micah Blu [email protected]:
I installed as instructed: bower install --save-dev ember-localstorage-adapter
and have this in adapters/application.js:
import DS from 'ember-data';
export default DS.LSAdapter.extend({
namespace: 'todoapp'
});
Wouldn't I also need to import the localstorage adapter somehow? I tried to import it from the bower directory but still no luckThis is the error I have:
Error while processing route: todos.index Cannot read property 'extend' of undefined TypeError: Cannot read property 'extend' of undefined—
Reply to this email directly or view it on GitHub.
from ember-localstorage-adapter.
That makes sense, however not sure what key name to use? I'm already using development and production for emberdata, just tried to use 'localstorage' as key name but that produced an error. Thanks a ton for your help
from ember-localstorage-adapter.
Might be a good idea as well to show a sample section of the broc file importing the library.
from ember-localstorage-adapter.
Nevermind got it working.. Thanks!
from ember-localstorage-adapter.
It's the path to the file. bower_components/ember-local storage-adapter/localstorage_adaper.js or something similar. Would be great if you open a PR to document that in the readme.
Am 01.10.2014 um 00:19 schrieb Micah Blu [email protected]:
Might be a good idea as well to show a sample section of the broc file importing the library.
—
Reply to this email directly or view it on GitHub.
from ember-localstorage-adapter.
Think I'll do that
from ember-localstorage-adapter.
Hello,
i have followed the instruction for setting up the adapter from ember-cli (http://stackoverflow.com/questions/24327090/how-to-import-module-ember-localstorage-adapter-with-ember-cli).
Unfortunately, i'm stuck at the
Error message: " Error while processing route: products.index Cannot read property 'extend' of undefined TypeError: Cannot read property 'extend' of undefined".
I'll be happy with any help somebody can provide.
Regards
from ember-localstorage-adapter.
I solved the problem.
Sorry for false alarm.
All I had to do is to restart the ember server.
Best regards.
from ember-localstorage-adapter.
😄
from ember-localstorage-adapter.
I'm stuck here with the same symptoms:
Ran: $ ember install:bower ember-localstorage-adapter
app/adapters/application.js:
import DS from 'ember-data';
// export default DS.FixtureAdapter.extend({});
export default DS.LSAdapter.extend({
namespace: 'tapp2'
});
These are my versions:
DEBUG: -------------------------------
ember.debug.js:5197DEBUG: Ember : 1.11.1
ember.debug.js:5197DEBUG: Ember Data : 1.0.0-beta.16.1
ember.debug.js:5197DEBUG: jQuery : 1.11.2
ember.debug.js:5197DEBUG: -------------------------------
Error:
Error while processing route: postmen.index Cannot read property 'extend' of undefined TypeError: Cannot read property 'extend' of undefined
What exactly would I need to do in the Brocfile.js, that isn't very clear to me?
from ember-localstorage-adapter.
Before the last line:
app.import('bower_components/ember-localstorage-adapter/localstorage_adapter.js');
from ember-localstorage-adapter.
I just had this working, when my code-buddy pointed out for me that I should run this in stead:
$ ember install ember-localstorage-adapter
That made it work.
from ember-localstorage-adapter.
Related Issues (20)
- Checkout project and run tests: 47 tests. 2 passed, 45 failed HOT 4
- findAll returns empty array always HOT 2
- store.find('model-type', { prop: value} ) no longer working in 0.5.4 HOT 6
- Uncaught TypeError: Cannot read property 'typeKey' of undefined HOT 4
- support for > Ember Data 1.0.beta.16 HOT 6
- unloadAll() doesnt work HOT 2
- New Release HOT 3
- Are query() queryRecord() supported? HOT 1
- use begin/endPropertyChanges in findMany
- relationships in "new" state should not be pushed to LS
- Ember data 2.3+ does not work with this addon HOT 21
- sessionStorage support HOT 3
- FastBoot-ness
- Relationships to a model using another adapter HOT 1
- Resolve no results instead of rejecting the promise HOT 2
- After a failed .findRecord, it is impossible to create a record with the same id HOT 2
- Unable to fetch with .findAll('user') HOT 1
- Upgrade ember-cli-babel & ember-runtime-enumerable-includes-polyfill to remove deprecation warning HOT 6
- Fix use of deprecated .copy method
- Push new version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-localstorage-adapter.