Giter Club home page Giter Club logo

Comments (6)

0x6368656174 avatar 0x6368656174 commented on May 26, 2024 5

This lib really useful, but we had to remove because of this bug.

from until-destroy.

NetanelBasal avatar NetanelBasal commented on May 26, 2024 2

Hi, this is our peer dependencies requirements:

"peerDependencies": {
  "@angular/core": ">=9.0.0-next.10"
}

So I guess you'll have to wait or use the older version.

from until-destroy.

leon avatar leon commented on May 26, 2024 1

Update

I forked and updated until-destroy to the latest angular rc release, but the tests work, so it hasn't got anything to do with angular/core.

Nx uses the library jest-preset-angular and nx is currently using version 7.1.1

jest-preset-angular has released a version 8.0.0, but nx still hasn't updated to that version, so that might fix it.

The only thing i can think of is that jest-preset-angular doesn't compile to ivy code and thus ɵcmp will be null.

But I'm not sure how to get around it, or if I just have to wait for nx to catch up to angular 9. :(

from until-destroy.

0x6368656174 avatar 0x6368656174 commented on May 26, 2024

I have some issue when try run my app in storybook. I can't use old version, because i use Ivy.

from until-destroy.

demike avatar demike commented on May 26, 2024

We have the same issue in storybook using Ivy

from until-destroy.

akirpichnikov avatar akirpichnikov commented on May 26, 2024

For some reason, Storybook doesn't use Angular Ivy with my setup and I had the same error. I added postinstall script with ngcc option to package.json according to the official docs and now everything works well.
After making these changes you may need to delete node_modules (rm -rf) and install them again.

P.S. to check if Ivy enabled you can import it from angular/core

import { Component, OnInit, ɵivyEnabled as ivyEnabled, OnDestroy } from '@angular/core';

ngOnInit(): void {
    console.log('ivyEnabled', ivyEnabled);
}

from until-destroy.

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.