-
Notifications
You must be signed in to change notification settings - Fork 264
feat: port client from next.js to pure react #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running yarn start
gives me a page with
Compiled with problems:
ERROR in ./node_modules/@fuel-ts/providers/dist/util.js 18:17-34
Module not found: Error: Can't resolve 'crypto' in '/home/devel/local/fuellabs/swayswap-demo/client/node_modules/@fuel-ts/providers/dist'
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:
- add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
- install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "crypto": false }
This was related to this PR: FuelLabs/fuels-ts#151 (comment) will be updating it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ran locally and looks good! the faucet stopped working but I spoke with @luizstacio and we will fix it later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Runs locally
Closes: #14