Code Monkey home page Code Monkey logo

Comments (7)

KorsaR-ZN avatar KorsaR-ZN commented on July 29, 2024 2

@lygstate @bryandbs
Hi, you should import AngularReactBrowserModule in AppModule

import { AngularReactBrowserModule } from '@angular-react/core';

@NgModule({
    imports: [
        AngularReactBrowserModule,
        ....

from angular-react.

yuwu9145 avatar yuwu9145 commented on July 29, 2024

As far as I know, @angular-react/core: 1.0.1 works only when following dependencies and versions installed:

"react": "^16.6.3",
"react-dom": "^16.6.3",

My project works well with above package.json settings, hope it helps :)

from angular-react.

bryandbs avatar bryandbs commented on July 29, 2024

@yuchaosydney I updated my dependencies and reinstalled everything, still getting the same error. Even tried to use a basic react component I wrote myself, still not getting any luck. If you have a link to a project or gist where I can see how you integrated a component library, that would be very helpful

from angular-react.

dschoon avatar dschoon commented on July 29, 2024

I was seeing this as well (although I didn't notice any negative side effects). It goes away if I set reactNodeRef to static = true:
@ViewChild('reactNode', { static: true }) protected reactNodeRef: ElementRef;

from angular-react.

lachis avatar lachis commented on July 29, 2024

Did you have any success resolving this issue @bryandbs. I'm having the same problem

from angular-react.

lygstate avatar lygstate commented on July 29, 2024

Same issue

from angular-react.

rafaelcalpena avatar rafaelcalpena commented on July 29, 2024

I had the same error, tried all suggested fixes and it still didn't work. In my case, I forgot to set
styles: ['react-renderer']
in the declaration for my wrapper component.

from angular-react.

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.