sindresorhus / electron-store

Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc
MIT License
4.57k stars 148 forks source link

ERROR in ./node_modules/atomically/dist/utils/fs.js 4:11-24 #236

Open OldManMeta opened 1 year ago

OldManMeta commented 1 year ago

Hi there,

This started popping up as soon as I installed - have tried everything to get to the bottom of the issue, changing webpack configs etc.

ERROR in ./node_modules/atomically/dist/utils/fs.js 4:11-24 Module not found: Error: Can't resolve 'fs' in 'C:\Users\mrbre\source\repos\SHARED\IMAuthReactSample\node_modules\atomically\dist\utils' Did you mean './fs'? Requests that should resolve in the current directory need to start with './'. Requests that start with a name are treated as module requests and resolve within module directories (node_modules). If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too. @ ./node_modules/atomically/dist/index.js 7:13-34 @ ./node_modules/conf/dist/source/index.js 25:19-40 @ ./node_modules/electron-store/index.js 4:13-28 @ ./src/app/IMAuthFlow/authFlowPresenter.tsx 2:0-35 7:22-27 @ ./src/app/presentation.tsx 2:0-64 4:32-50 @ ./src/index.tsx 4:0-46 23:24-36

Any pointers?

"react": "^18.2.0", "electron-store": "^8.1.0",

Matse2005 commented 2 weeks ago

I have the same problem in version 8.2.0