GithubHelp home page GithubHelp logo

Comments (10)

casimcdaniels avatar casimcdaniels commented on May 16, 2024 2

@dgeb

Any updates? Cloned the ember-engine-demo repo and upon running ember s I get the following error:

Uncaught Error: Could not find module ember-views/views/select

from ember-engines.

rwjblue avatar rwjblue commented on May 16, 2024

Awesome, thank you for reporting. I'll to dig into tonight/tomorrow morning.

from ember-engines.

trentmwillis avatar trentmwillis commented on May 16, 2024

Out of curiosity, how important is it to run on Canary? Since this addon imports the Engine and other classes using emberRequire everything works fine on the current Release or Beta builds. Is the Canary recommendation simply to acknowledge that this has some cutting edge APIs?

Edit: also if running on Canary is important, should we add a note in the README saying to enable the ember-application-engines flag?

from ember-engines.

dgeb avatar dgeb commented on May 16, 2024

@trentmwillis We are recommending Canary until this addon only uses Ember's public APIs. Until then, we'll be moving any custom overrides from this addon into Ember Core gradually, so we can only recommend use of Ember Canary for Ember Engines Canary. With that said, there's a good chance that particular versions of this addon will end up being compatible with particular Beta and Release builds of Ember itself.

from ember-engines.

dgeb avatar dgeb commented on May 16, 2024

@cmcdaniels Yeah, there have been quite a few changes in Ember Canary lately. I started working on an upgrade to this addon a few days ago, but it's not quite green yet.

from ember-engines.

trentmwillis avatar trentmwillis commented on May 16, 2024

I looked into this a bit more, in hopes of unblocking some efforts to use a newer version of canary and it seems there are two core issues:

  1. Outlets now need a template registered otherwise they don't render anything, and
  2. Some registrations are now "private" which means looking them up by the normal string fails.

Unfortunately, looks like both of these require knowledge of truly private constructs in Ember, so I only verified fixes by monkeypatching.

from ember-engines.

rwjblue avatar rwjblue commented on May 16, 2024

Awesome, thank you @trentmwillis!


The first one can be solved with something like this around here:

const topLevelViewTemplate = emberRequire('ember-htmlbars/templates/top-level-view');

then registering around here.


The second can be solved via annoyingly grabbing the private symbol and registering:

const P = emberRequire('container/register', 'privatize');

And registering the same...

from ember-engines.

trentmwillis avatar trentmwillis commented on May 16, 2024

Ah cool, forgot you can use the emberRequire to get internal packages. I'll try to put together a PR.

from ember-engines.

rwjblue avatar rwjblue commented on May 16, 2024

Shhh, don't tell anyone 😉

from ember-engines.

rwjblue avatar rwjblue commented on May 16, 2024

Fixed by #83 and #82

from ember-engines.

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.