Closed kyle-sawatsky closed 7 months ago
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "^5.0.1",
"semantic-ui-less": "^2.5.0",
"semantic-ui-react": "^2.1.4"
},
"devDependencies": {
"@craco/craco": "^7.0.0",
"@semantic-ui-react/craco-less": "^3.0.0"
},
@kyle-sawatsky I just tested with latest versions and works like a charm.
ERROR in ./src/components/Accordion.tsx 37:317-331 export 'mpmActionColor' (imported as 'mpmActionColor') was not found in 'semantic-ui/colors' (module has no exports)
Not sure what is causing this, never seen this before.
The error related to CSS loader should be solved with latest semantic-ui-less
.
Closing as there is no reply from the author.
Bug Report
Steps
I had been looking to upgrade
react-scripts
to v5 and craco has released a compatible version (v7).I updated everything to the latest including
semantic-ui-react/craco-less
to 3.0.0 and it no longer builds.There's some compatibility information in a comment here https://github.com/Semantic-Org/Semantic-UI-React/issues/4301#issuecomment-1021663941. This doesn't cover craco v7 but the build also failed with the suggested craco v6 setup.
Expected Result
The build to succeed.
Actual Result
colors.module.less
file so all imports faildata:
uri when attempting to loadsemantic.less
Version
craco 7.0.0 @semantic-ui-react/craco-less 3.0.0 react-scripts 5.0.0 semantic-ui-less 2.4.1 semantic-ui-react 2.0.3
Sample build errors