project_mern_memories icon indicating copy to clipboard operation
project_mern_memories copied to clipboard

Can't resolve '@amaterial-ui/core'

Open ChrisPG2022 opened this issue 2 years ago • 7 comments

Module not found: Can't resolve '@amaterial-ui/core' in 'C:\Users\Owner\Desktop\dailytips project\client\src\components\Posts' Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'

I tried almost anything, I don't know why this error gives me, help me with some ideas please!! BUG

ChrisPG2022 avatar Apr 11 '22 13:04 ChrisPG2022

The solution is reading the error message one more time carefully:

Can't resolve '@amaterial-ui/core' in 'C:\Users\Owner\Desktop\dailytips project\client\src\components\Posts'

That's because we don't have anything such as @amaterial-ui/core. That's actually @material-ui/core. It's just a misspelling. Fix that and everything will be fine.

MatinT-SA avatar Apr 11 '22 18:04 MatinT-SA

So i keep writing the code and the problem will be solved right? or how to fix that? thank you very much

ChrisPG2022 avatar Apr 11 '22 19:04 ChrisPG2022

@ChrisPG2022 I've already mentioned how to fix that. In the line 2 where you've imported the material-ui/core package, you need to type @material-ui/core instead of @amaterial-ui/core. That's the issue. Remove a after at sign symbol. The correct name of the package is material NOT amaterial.

MatinT-SA avatar Apr 12 '22 04:04 MatinT-SA

I swear I don't know why I didn't see this, thank you very much for your help

ChrisPG2022 avatar Apr 12 '22 05:04 ChrisPG2022

BUG 2 the card on the top left is not loading and I have this error? Is that why it's not displayed?

ChrisPG2022 avatar Apr 12 '22 13:04 ChrisPG2022

@ChrisPG2022 It has to be something with the backend and the server side. If you follow the tutorial and the codes in Adrian's Repo, everything will be fine. Also don't forget to comment out mongoose.set('useFindAndModify', false); in the index.js file inside your server directory.

MatinT-SA avatar Apr 12 '22 15:04 MatinT-SA

Thanks, I'll do this, I hope to find the solution..

ChrisPG2022 avatar Apr 12 '22 19:04 ChrisPG2022