You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
For storybook I want to import a glimmer component.
Storybook spawns two processes: one for your ember app and another one for storybook itself, which is managed through webpack.
Stories are loaded through webpack and the idea is to have named exports but keep the file as POJO. This is how a story is written:
This I see as a nice way to write stories, because it wraps it in a component and gives you the same mechanics as in a real ember app.
However, there is a gotcha, that I haven't figured out yet and I am seeking for help. The three imports I put there are not working, when this is run through webpack with babel. I only have limited knowledge here how the magic in ember works. Installing plenty missing glimmer packages did not help either, it stopped the same way (just a little later).
Is this possible and how? If not, what would be my options?
Thanks a lot.
The text was updated successfully, but these errors were encountered:
gossi
changed the title
Import glimmer component into non-ember environment/build
Import glimmer component into non-ember build pipeline
Dec 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For storybook I want to import a glimmer component.
Storybook spawns two processes: one for your ember app and another one for storybook itself, which is managed through webpack.
Stories are loaded through webpack and the idea is to have named exports but keep the file as POJO. This is how a story is written:
with
template
andcontext
they are put into a classic ember component, hoisted into the running ember instance and rendered.Now, I want to write a story in which I want to test a tracked property. Ideally, I would write something like this:
This I see as a nice way to write stories, because it wraps it in a component and gives you the same mechanics as in a real ember app.
However, there is a gotcha, that I haven't figured out yet and I am seeking for help. The three imports I put there are not working, when this is run through webpack with babel. I only have limited knowledge here how the magic in ember works. Installing plenty missing glimmer packages did not help either, it stopped the same way (just a little later).
Is this possible and how? If not, what would be my options?
Thanks a lot.
The text was updated successfully, but these errors were encountered: