Giter Club home page Giter Club logo

Comments (7)

jrjohnson avatar jrjohnson commented on August 21, 2024 1

No worries, it's a messy issue and one I've been dealing with in our own apps all week. I'm glad you found your culprit! I'm going to close this, but feel free to re-open if it turns out there is something we need to do here.

from ember-fontawesome.

jrjohnson avatar jrjohnson commented on August 21, 2024

That issue lies with any addon that has a pre 0.50 version of @embroider/macros. Many addons will need to be updated to @embroider/macros@v1. In our case that dependency comes from using ember-get-config. The best place to look for the issue is to run npm ls @embroider/macros and see what addons you have that need to be updated. I don't think there is anything that needs to be done here, but PRs welcome if I'm wrong. You're seeing this error in your app after the release here because of our dependency on ember-get-config.

from ember-fontawesome.

vihai avatar vihai commented on August 21, 2024

Thank you very much and sorry for opening an issue that was not related to FortAwesome (I suspected that but the issue arose after updating just it). I hope this could be helpful to identify the scenario for others.

In my case the culprit is ember-power-select

from ember-fontawesome.

lcmen avatar lcmen commented on August 21, 2024

I've stumbled upon the same issue. Thank you @jrjohnson for describing details of the issue and providing npm ls command (TIL!) for tracking dependencies.

In my case the problem is caused by 2 addons:

from ember-fontawesome.

bertdeblock avatar bertdeblock commented on August 21, 2024

fwiw, this addon could easily do without ember-get-config. It's only used in a component file, meaning you could just resolve the config instead. v1 of ember-get-config works significantly different than older versions and not really in a good way. It includes your config multiple times in the final build and the config you get from ember-get-config is not necessarily the same as the config an app author gets when doing import config from 'app/config/environment'.
Personally I would ditch ember-get-config here.

from ember-fontawesome.

jrjohnson avatar jrjohnson commented on August 21, 2024

@bertdeblock PR welcome! However getting the config from and add-on that may be consumed by other addons isn't as simple as importing it. That's the main advantage of ember-get-config, it handles the tricky part.

from ember-fontawesome.

bertdeblock avatar bertdeblock commented on August 21, 2024

getting the config from and add-on that may be consumed by other addons

I don't think the nesting of your addon matters if you do owner.resolveRegistration('config:environment').
I think that should always return the app's config.

Anyhow, ember-get-config v2 was just released.
At first glance, it seems to address the issues mentioned above.

EDIT: afaict, v2 still has (some of) the same issues.

from ember-fontawesome.

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.