question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to enable ivy on Storybook

See original GitHub issue

Prerequisites

  • 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.

  1. Clone this repository https://github.com/maxigimenez/nx-angular-storybook
  2. Run npm install
  3. Run npx ng run my-lib:storybook
  4. Inspect angular element and run $0.__ngContext__ in the browser console, will return undefined 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:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
juristrcommented, Feb 16, 2021

@Stonepaw I’m working on a fix. For now you can try to remove the --create-ivy-entry-points from the postinstall script in the package.json. Remove and re-install the node_modules and then storybook should run in Ivy mode

0reactions
Stonepawcommented, Jan 28, 2021

Bump!

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found