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.

v2.0 broke import of hrefTo function

See original GitHub issue

The change from v1.15.1 to v2.0.0 removed

// addon/helpers/href-to.js
export { hrefTo };

That means it’s not possible to do import { hrefTo } from 'ember-href-to/helpers/href-to'. It also means the reexport from app/ is broken.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
GavinJoycecommented, Mar 29, 2019

3.1.0 has been published which includes a fix for this.

If you can, you should use Ember’s router service’s urlFor for this instead though:

https://api.emberjs.com/ember/3.8/classes/RouterService/methods/urlFor?anchor=urlFor

0reactions
janwerkhovencommented, Mar 30, 2019

Thanks for the fix @GavinJoyce .

TIL: Ember has urlFor 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import function broken · Issue #735 · CTFd/CTFd · GitHub
Trying to Import DB from another instance of CTFd 2.0.0 fails (clicking the yellow import button does nothing) in both Chrome and Firefox....
Read more >
IE href="javascript:customFunction()" not firing on first frame load
I put a breakpoint inside customFunction() and it won't break when the links don't work, but it will break if the link will...
Read more >
Dash 2.0 Migration | Dash for Python Documentation | Plotly
This section is for you if you currently use Dash 1.x in your apps and want to upgrade to Dash 2.0. Here you'll...
Read more >
Re: Import of WMF and EMF image slides broken on 2... - Adobe ...
Now, in 2.0, it goes through the motions - asking if I would like to Crop or Resize the imported image. It even...
Read more >
Arrow function expressions - JavaScript - MDN Web Docs
An arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate ...
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