Comments (6)
Interesting. I wonder what part of EDA is conflicting with Ember Mirage. Is there a sample app anywhere I can look at?
from ember-django-adapter.
Can you give us any output or anything else to help us diagnose the issue here?
from ember-django-adapter.
Yeah I'll throw together a demo and post it
On Jun 10, 2015 7:24 PM, "Dustin Farris" [email protected] wrote:
Can you give us any output or anything else to help us diagnose the issue
here?—
Reply to this email directly or view it on GitHub
#100 (comment)
.
from ember-django-adapter.
@gone Is this still a problem for you?
from ember-django-adapter.
Closing. Please feel free to reopen if this continues to be a problem.
from ember-django-adapter.
I had a similar error.
In one project, I had ember-cli-mirage
and ember-django-adapter
working together and the other it didn't.
Here is the stack trace from my error:
MirageError {description: "Mirage: undefined", fileName: undefined, lineNumber: undefined, message: "Mirage: Your Ember app tried to GET 'api/summaries…ig.js file. Did you forget to add your namespace?", name: "Error", …}
description: "Mirage: undefined"
fileName: undefined
lineNumber: undefined
message: "Mirage: Your Ember app tried to GET 'api/summaries/?page=1',↵ but there was no route defined to handle this request.↵ Define a route that matches this path in your↵ mirage/config.js file. Did you forget to add your namespace?"
name: "Error"
number: undefined
stack: "Mirage: Error: Your Ember app tried to GET 'api/summaries/?page=1',↵ but there was no route defined to handle this request.↵ Define a route that matches this path in your↵ mirage/config.js file. Did you forget to add your namespace?↵ at new MirageError (http://localhost:7357/assets/vendor.js:136095:21)↵ at assert (http://localhost:7357/assets/vendor.js:136082:13)↵ at Pretender.unhandledRequest (http://localhost:7357/assets/vendor.js:140927:29)↵ at Pretender.handleRequest (http://localhost:7357/assets/vendor.js:65147:14)↵ at FakeRequest.send (http://localhost:7357/assets/vendor.js:64916:21)↵ at Object.send (http://localhost:7357/assets/vendor.js:9941:10)↵ at Function.ajax (http://localhost:7357/assets/vendor.js:9547:15)↵ at Class._ajaxRequest (http://localhost:7357/assets/vendor.js:220184:15)↵ at http://localhost:7357/assets/vendor.js:220174:17↵ at initializePromise (http://localhost:7357/assets/vendor.js:61620:7)"
__proto__: Error
Upon inspecting the difference between the projects, I had imported the add-on differently in app/adapters/application.js
.
One had:
// app/adapters/application.js
import DRFAdapter from './drf';
export default DRFAdapter.extend({
namespace: 'api',
});
The other had:
// app/adapters/application.js
import DRFAdapter from 'ember-django-adapter/adapters/drf';
export default DRFAdapter.extend({
namespace: 'api',
});
The latter with the full path import worked and fixed the above ember-cli-mirage
error.
from ember-django-adapter.
Related Issues (20)
- What are the advantages/disadvantages of using this package vs django-rest-framework-json-api? HOT 2
- Fastboot - Error: The adapter operation was aborted HOT 3
- upload file
- Why embedded record is not populated with Ember.Model? HOT 2
- An in-range update of loader.js is breaking the build 🚨 HOT 9
- An in-range update of ember-data is breaking the build 🚨 HOT 11
- An in-range update of ember-cli-htmlbars is breaking the build 🚨 HOT 1
- Correctly serialize lists of URLs for nested relationships HOT 3
- An in-range update of ember-disable-prototype-extensions is breaking the build 🚨 HOT 1
- An in-range update of ember-cli-inject-live-reload is breaking the build 🚨 HOT 1
- Upgrade ember-cli
- Dependecy problem with ember-inflector HOT 1
- Update to Ember-Data v3.0 HOT 21
- Acceptance test fails because CRUD operation didn't finish up before app shutdown HOT 4
- Generate adapter and serializer in pods
- CircleCI fails with pip install mkdocs HOT 11
- Easy to get multiple versions of ember-data HOT 1
- Website/Documentation 404 HOT 8
- Import AdapterError and InvalidError from "DS" object HOT 1
- No release with latest commits HOT 5
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-django-adapter.