You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't run latest MyCrypto source locally on Mac OS X due to missing fs dependency:
$ yarn start
yarn run v1.22.19
$ yarn run dev
...
ERROR Failed to compile with 1 errors
This dependency was not found:
* fs in ./node_modules/dotenv/lib/main.js
To install it, you can run: npm install --save fs
What exactly were you doing when you encountered this issue?
Clone repo
$ git clone https://github.com/MyCryptoHQ/MyCrypto.git
$ git rev-parse HEAD
457ec2f0a1cce537275c3b67d7e871f1ae3ae162
yarn start
yarn run v1.22.19
$ yarn run dev
$ check-node-version --package
$ cross-env NODE_ENV=development TARGET_ENV=local webpack-dev-server --config webpack_config/development.js
Failed to load ./.env.example.
Starting type checking service...
Using 1 worker with 2048MB memory limit
ℹ 「wds」: Generating SSL Certificate
ℹ 「wds」: Project is running at https://localhost:3000/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /Volumes/My HD/Users/some-user/Documents/MyCrypto
ℹ 「wds」: 404s will fallback to /index.html
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Type checking in progress...
ERROR Failed to compile with 1 errors 10:16:42 PM
This dependency was not found:
* fs in ./node_modules/dotenv/lib/main.js
To install it, you can run: npm install --save fs
Webpack Bundle Analyzer is started at http://127.0.0.1:8888
Use Ctrl+C to close it
✖ 「wdm」:
ERROR in ./node_modules/dotenv/lib/main.js
Module not found: Error: Can't resolve 'fs' in '/Volumes/My HD/Users/some-user/Documents/MyCrypto/node_modules/dotenv/lib' @ ./node_modules/dotenv/lib/main.js 24:11-24 @ ./node_modules/gridplus-sdk/dist/index.js @ ./node_modules/@mycrypto/wallets/lib/es/implementations/deterministic/gridplus.js @ ./node_modules/@mycrypto/wallets/lib/es/implementations/deterministic/index.js @ ./node_modules/@mycrypto/wallets/lib/es/implementations/index.js @ ./node_modules/@mycrypto/wallets/lib/es/index.js @ ./src/services/Store/store/persist.config.ts @ ./src/services/Store/store/root.reducer.ts @ ./src/services/Store/store/asset.slice.ts @ ./src/services/Store/store/account.slice.ts @ ./src/services/Store/store/nft.slice.ts @ ./src/services/Store/store/index.ts @ ./src/index.tsx @ multi ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ErrorOverlayEntry.js ./src/index.tsxℹ 「wdm」: Failed to compile.No type errors foundVersion: typescript 4.1.2Time: 81352ms
Try to access http://localhost:3000, receive error:
Description of Your Machine
Browser: Chrome 103.0.5060.134
Operating system: Mac OS Catalina 10.15.7
MyCrypto.com: Running from source
MyCrypto Version Number: 457ec2f0a1cce537275c3b67d7e871f1ae3ae162
Node version: 12.14.1
The text was updated successfully, but these errors were encountered:
byforcesunseen
changed the title
Module not found: Error: Can't resolve fs on Mac OS X
Can't run yarn start on Mac OS X: Module not found: Error: Can't resolve fs
Nov 14, 2022
Description of Issue
Can't run latest
MyCrypto
source locally on Mac OS X due to missingfs
dependency:What exactly were you doing when you encountered this issue?
Clone repo
Run
yarn
, no errors occur:Run
yarn start
, receiveModule not found
error:Try to access
http://localhost:3000
, receive error:Description of Your Machine
Chrome 103.0.5060.134
Mac OS Catalina 10.15.7
Running from source
457ec2f0a1cce537275c3b67d7e871f1ae3ae162
12.14.1
The text was updated successfully, but these errors were encountered: