Not able to enable ivy on Storybook
See original GitHub issuePrerequisites
- I am running the latest version
- I checked the documentation (nx.dev) and found no answer
- I checked to make sure that this issue has not already been filed
- I’m reporting the issue to the correct repository (not related to React, Angular or any dependency)
Expected Behavior
Support ivy on storybook.
Current Behavior
Ivy is not enabled for storybook projects.
Failure Information (for bugs)
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
- Clone this repository
https://github.com/maxigimenez/nx-angular-storybook
- Run
npm install
- Run
npx ng run my-lib:storybook
- Inspect angular element and run
$0.__ngContext__
in the browser console, will returnundefined
but when ivy is enable it returns more information.
Context
Please provide any relevant information about your setup:
- Using latests angular
- Tried with latests storybook and also with
next
branch of storybok
Use the repository mentioned above to fully reproduce the issue.
Failure Logs
Other
I forked storybook and run their angular-cli
project with the latest version of angular and work as expected.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Angular 9 unable to run storybooks on ivy ... - Stack Overflow
I've got this working by running ngcc before running storybook. "storybook": "ngcc && start-storybook -p 61610",.
Read more >Storybook Addon Angular Ivy
This addon enables Ivy for @storybook/angular and is meant as a preview before it gets integrated into @storybook/angular itself.
Read more >Angular 9 unable to run storybooks on ivy enabled library if ...
I've got this working by running ngcc before running storybook. "storybook": "ngcc && start-storybook -p 61610",. JayChase 10649.
Read more >The Angular Ivy guide for library authors - DEV Community
The Ivy Instruction Set which is the compilation output in directive and component rendering functions will not be finalised before Angular ...
Read more >Angular v12 Released, Transitions to Ivy Rendering Engine
If you're a library developer and you're not ready to move to Ivy just yet, ... The feature needs to be enabled in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Stonepaw I’m working on a fix. For now you can try to remove the
--create-ivy-entry-points
from thepostinstall
script in the package.json. Remove and re-install the node_modules and then storybook should run in Ivy modeBump!
I discovered this unexpected issue when trying to storybook a component that was binding css variables, an ivy only feature. Is there a workaround or possible fix for this issue?