-
Notifications
You must be signed in to change notification settings - Fork 301
Support for the experimental syntax 'jsx' isn't currently enabled #363
Comments
Did you end up finding a solution? i'm having the exact some problem except with my own component library. I just want to be able to install my own package without having to 'pre-build' it. |
@meneerrook My solution was to not use create-react-library. It turns out that despite it actually being rather straightforward, there's no good guide to do it except for this one which sadly has not yet been finalized and released. That's at least the only resource that helped for me (I tried to go through several guides, all of them more complex, and always ended up getting some error). |
I made a library with
create-react-library
calledcomponents
.What's weird is that it builds just fine (
npm build
) but when I try to use it in an application I get the errorIn
package.json
:"components": "file:../components",
This application is a CRA application that worked fine before I tried to include this library - it definitely has JSX enabled.
When I google my problem, the solutions I find have to change the babel config, but afaik, I cannot do that without ejecting the CRA...
Please tell me if you need more information.
The text was updated successfully, but these errors were encountered: