Create React App + Compiled #846
Unanswered
DanBlakeNZ
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Unfortunately compiled is not compatible with CRA, unless you eject the application or override the configuration, like you have said. Though when you do that, the installation should be very similar to what is already outlined on the website using either babel or webpack. In the future, compiled should expose a babel macro like emotion does. That would enable anyone to use compiled in a CRA without ejecting. There is an issue for it here already, though this is not on our radar right now (pull requests are welcome though!): #770 Finally, would you be able to post the webpack config you have overridden? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
Our team is interested in using Complied and I am wondering how well it works (if at all) with Create React App currently? I have got Complied working with a manual Babel, Webpack & React app and it works quite nicely. But when trying to add Compiled to a CRA application we obviously can't access webpack config without ejecting or using something like 'Create React App Configuration Override (CRACO)'. I have tried using CRACO and adding Compiled to craco.config.js (ie webpack.config) file, but then started running into errors from Compiled
You haven't configured a transformer yet
etc.So before going any further, I was just wondering what does the process look like in terms of getting it up and running on a CRA application - or does it require a whole lot of extra configuration?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions