esther615kim / react-my-readit

1 stars 0 forks source link

Error: Can't resolve 'os' in 'C:\Users\MKKIM\Desktop\ts-reddit\my-app\src\contexts' #6

Open esther615kim opened 2 years ago

esther615kim commented 2 years ago

ERROR in ./src/contexts/authContext.js 6:0-30 Module not found: Error: Can't resolve 'os' in 'C:\Users\MKKIM\Desktop\ts-reddit\my-app\src\contexts'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:

esther615kim commented 2 years ago

image

esther615kim commented 2 years ago

https://stackoverflow.com/questions/70398678/i-tried-to-polyfill-modules-in-webpack-5-but-not-working-reactjs

esther615kim commented 2 years ago

https://github.com/facebook/create-react-app/issues/11756