Closed timofeysie closed 8 months ago
ChatGPT suggest the following to resolve this issue, you can try the following steps:
"scripts": { "heroku-postbuild": "npm install --legacy-peer-deps && react-scripts build" }
With this change, the npm install command during the Heroku build will use the --legacy-peer-deps flag to potentially resolve the dependency conflict.Both react-html-parser and html-react-parser caused build failures I could not fix, so resorted to a basic approach:
{content && <Card.Text><div dangerouslySetInnerHTML={{ __html: content }} /></Card.Text>}
When deploying versions 0.1.3 to Heroku, this is the failed log: