Closed psyycker closed 5 years ago
Hey! Thanks for checking out react-in-angularjs.
Would you mind posting the error you're getting? Looking over your syntax I don't see anything obviously incorrect so I share your suspicion that the issue is something to do with webpack.
Hi, Sorry to not coming back to you, I actually found a solution. So the problem is, my whole angularjs project is compiled with webpack and babel (That's an ES6 project). And so is using the babel-loader without any react loader of course. My solution was to add a loader react compatible for jsx files. Then I have both js files for angular and jsx files for react. Working like a charm now !
Ah, that makes sense. The section on webpack configuration is a bit sparse - I’ll see if I can add some more details.
I tried your library and while requiring the file with component, It's throwing me a synthax error with my bit of JSX
My full code is like this :
Did you already met this problem ? The whole AngularJS app is built with Webpack 4. Maybe it's related to that ?