Open PrimulaX opened 2 years ago
I was able to override style-engine
with npm override that way:
"overrides": {
"@mui/styled-engine": "https://registry.npmjs.org/@mui/styled-engine-sc/-/styled-engine-sc-5.6.1.tgz"
},
But I was unable to reference it to the existing style-engine-sc
pgk.
Seeing https://github.com/dilanx/craco/issues/378#issuecomment-1108663751 I am not very hopeful for using craco too. In addition, https://github.com/arackaf/customize-cra is abandoned too (last version from 2 years ago).
Maybe we can try to use something like rewire, here is an example of it: https://marmelab.com/blog/2021/07/22/cra-webpack-no-eject.html#rewire-in-practice, but I haven't personally tried it so I cannot guarantee that it will work.
If someone from the community would like to help and investigate this further it would be great 👌
Duplicates
Latest version
Current behavior 😯
I'm using
styled-components
as styled engine which needs alias andcraco
is used to overridewebpack
configs which only supportsreact-script 4*
(pluscraco-alias
plugin is already deprecated), meanwhile I need to updatereact-scripts
, can I usestyled-components
as styled engine withoutcraco
?Expected behavior 🤔
So I need to use
styled-components
as styled engine without craco because craco doesn't support react-scripts 5. Sorry for create this issue as bug report.Steps to reproduce 🕹
No response
Context 🔦
No response
Your environment 🌎
No response