Git Product home page Git Product logo

Comments (6)

dustinfarris avatar dustinfarris commented on July 24, 2024

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.

dustinfarris avatar dustinfarris commented on July 24, 2024

Can you give us any output or anything else to help us diagnose the issue here?

from ember-django-adapter.

gone avatar gone commented on July 24, 2024

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.

dustinfarris avatar dustinfarris commented on July 24, 2024

@gone Is this still a problem for you?

from ember-django-adapter.

dustinfarris avatar dustinfarris commented on July 24, 2024

Closing. Please feel free to reopen if this continues to be a problem.

from ember-django-adapter.

aaronlelevier avatar aaronlelevier commented on July 24, 2024

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)

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.