I'm trying to use the MUI wrappers in a project. I...
# react
s
I'm trying to use the MUI wrappers in a project. I'm having issues, so I tried to get the kotlin-mui-showcase working. That doesn't work for me either. I get about a dozen errors like the following:
Copy code
Module not found: Error: Can't resolve './utils/createSvgIcon' in '/home/sproctor/code/kotlin-mui-showcase/build/js/node_modules/@mui/icons-material'
t
Which wrappers and Kotlin version do you use?
Could you share your repo link?
s
Ok, I think I finally figured it out. It looks like
@mui/icons-material
5.4.1 broke the wrapper and it depends on the latest 5.x. Manually adding a dependency to 5.3.1 fixes things.
👍 1
a
@Sean Proctor, try to update the project and rebuild it. I've updated the dependencies. It might help. Manual adding is redundant
s
I'm still getting the same error.
I don't see why this would be happening. I think whatever package I'm getting for 5.4.1 is bad. I've tried deleting all of the caches I could find, but it still persists.
Sorry to be a bother, thanks for looking into this. It seems that an empty version of
@mui/icons-material
got stuck somewhere. After deleting anything that looked like it might be a cache for npm packages a second time, it's working.
👍 1