Skip to content

Commit 7f79e22

Browse files
committed
use webpack5
1 parent 9664d6e commit 7f79e22

File tree

4 files changed

+224
-271
lines changed

4 files changed

+224
-271
lines changed

next.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const withTM = require("next-transpile-modules")(["react-markdown"]);
22

33
module.exports = withTM({
4-
reactStrictMode: true,
5-
webpack5: false
4+
reactStrictMode: true
65
});

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"gray-matter": "^4.0.3",
2424
"hardhat": "^2.4.1",
2525
"ipfs-http-client": "^50.1.2",
26-
"next": "11.0.1",
26+
"next": "^12.0.4",
2727
"next-transpile-modules": "^8.0.0",
2828
"nft.storage": "^3.3.0",
29-
"react": "17.0.2",
30-
"react-dom": "17.0.2",
29+
"react": "^17.0.2",
30+
"react-dom": "^17.0.2",
3131
"react-markdown": "^7.1.0",
3232
"web3modal": "^1.9.3"
3333
},

pages/nft-market.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default function Home() {
7979
// const price = nft.price.toString()
8080
console.log(price)
8181
console.log(nftaddress)
82-
console.log(nft.tokenId)
82+
console.log(nft, nft.tokenId)
8383
const transaction = await contract.createMarketSale(nftaddress, nft.tokenId, {
8484
value: price
8585
})

0 commit comments

Comments
 (0)