question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mirage conflicting with Image Paths

See original GitHub issue

Hi Sam!

I’m loving this addon - it’s made building out prototypes so so easy. Such a breeze!

I’m running into a problem with Image Paths. I’m using Mirage with ember-material-design, and when using the {{md-icon}} component and passing a local path to an image in my application’s /public folder, I get an error like this:

Mirage: Your Ember app tried to GET 'images/icons/cross.svg', but there was no route defined to handle this request. Define a route that matches this path in your mirage/config.js file

Is there a way to bypass Mirage for certain requests?

Thankyou a milli!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
hhffcommented, Jun 23, 2015

Neither does explicitly stating the item:

this.get('images/icons/menu.svg', this.pretender.passthrough);
0reactions
JowelTissocommented, Mar 5, 2022

Neither does explicitly stating the item:

this.get('images/icons/menu.svg', this.pretender.passthrough);

Thanks man this worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mirage conflicting with Image Paths · Issue #181 - GitHub
I'm running into a problem with Image Paths. I'm using Mirage with ember-material-design , and when using the {{md-icon}} component and ...
Read more >
mirage.js will not work with sub url paths (only with root path ...
I am integrating mirage in Angular-9. I was facing the same issue. Every time page gets refreshed on any URL with some routes...
Read more >
This part of the second comic really interests me. Mirage's ...
This part of the second comic really interests me. Mirage's inner conflicts are more elaborate now (sorry for bad quality).
Read more >
Configuring Cloudflare Mirage
Learn how configure Cloudflare Mirage. Overview Image formats compatible with Mirage Enable Mirage Test Mirage OverviewMirage image...
Read more >
Mirage JS • An API mocking library for frontend developers
Mirage JS is an API mocking library that lets you build, test and share a complete working JavaScript application without having to rely...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found