Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error upon install without any components loaded #11

Open
eshtadc opened this issue Jan 15, 2019 · 6 comments
Open

Error upon install without any components loaded #11

eshtadc opened this issue Jan 15, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@eshtadc
Copy link

eshtadc commented Jan 15, 2019

I just installed ember-cli-stencil into a blank ember starter project (version 3.5.1) and now it fails to build with the error:
Reduce of empty array with no initial value

@eshtadc
Copy link
Author

eshtadc commented Jan 15, 2019

Then I tried installing a sample stencil component from https://stencilcomponents.com/component/rating/
using npm install am-rating --save
and added the component to the base application.hbs using the example usage snippet.
When trying to build this time I received:
Cannot read property 'resolvePackage' of undefined

@alexlafroscia
Copy link
Owner

alexlafroscia commented Jan 17, 2019

Interesting! Sorry about the issues here -- let me see if I can get that sorted out.

@alexlafroscia alexlafroscia added the bug Something isn't working label Jan 17, 2019
@alexlafroscia
Copy link
Owner

Cannot read property 'resolvePackage' of undefined

This problem seems to stem from the addonDiscovery API having been removed from the Ember CLI without a breaking change on their part 🤷‍♂️ I'll work on finding an alternative means for searching for the packages.

@alexlafroscia
Copy link
Owner

I was able to find an alternate API to fix that problem, so some progress there!

However, the import for am-rating doesn't match what this addon thinks it should be. I'm not sure if that's an effect of ember-auto-import importing it wrong or the standard shape for what a Stencil collection exposes as the ESM API having changed since I last worked on this package.

@odoe
Copy link

odoe commented May 29, 2019

Is there a current work around for this issue in ember-cli 3.10.x?

@alexlafroscia
Copy link
Owner

Closed by #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants