rhysmorgan134 / react-carplay

MIT License
381 stars 58 forks source link

Module not found: Error: Can't resolve 'fs' #36

Closed LRYMND closed 10 months ago

LRYMND commented 12 months ago

Hello Rhys,

Im having a strange issue since yesterday and hope that you might be able to help.

I'm getting:

`Module not found: Error: Can't resolve 'fs'

Module not found: Error: Can't resolve 'path'`

I tried your app, the latest stable version of mine and I can't seem to compile it anymore. Also I tried some of the fixes you find online but without any luck.

The error appeared suddenly while I made some minor code changes. It stayed even after reverting everything as mentioned above.

Did you ever run into this issue before?

Cheers

iLightFPS commented 11 months ago

I can't even get past all the errors when i type npm start. I also get these

Module not found: Error: Can't resolve 'fs' Module not found: Error: Can't resolve 'path'

All i want to do i make text slightly bigger and change the background to dark.

rhysmorgan134 commented 11 months ago

This is a change to webpack, it no longer bundles core node modules, I have added a few here, if you are building you may need to add more, fs was not required previously but now looks like it is

https://github.com/rhysmorgan134/react-carplay/blob/main/config-overrides.js

rhysmorgan134 commented 10 months ago

This is all caused due to create-react-app no longer being maintained. I have created a new branch based on vite, this will be merged soon and the new set up going forward

https://github.com/rhysmorgan134/react-carplay/tree/vite