Hi, please could you help me with this, i've been following this course for days now and I'm totally stuck on this.
Once i type npm run dev this is what i get
BarryH@EPT-LT23 MINGW64 ~/digital-marketplace (main) $ npm run dev
digital-marketplace@0.1.0 dev next dev
ready - started server on 0.0.0.0:3000, url: localhost:3000 info - Using webpack 5. Reason: Enabled by default nextjs.org/docs/messages/webpack5 event - compiled successfully event - build page: / wait - compiling... error - ./pages/index.js:11:0 Module not found: Can't resolve '../artifacts/contracts/Market.sol/NFTMarket.json' 9 | 10 | import NFT from '../artifacts/contracts/NFT.sol/NFT.json'
11 | import Market from '../artifacts/contracts/Market.sol/NFTMarket.json' 12 | 13 | export default function Home() { 14 | const [nfts, setNfts] = useState([])
Import trace for requested module:
nextjs.org/docs/messages/module-no... event - build page: /next/dist/pages/_error wait - compiling... error - ./pages/index.js:11:0 Module not found: Can't resolve '../artifacts/contracts/Market.sol/NFTMarket.json' 9 | 10 | import NFT from '../artifacts/contracts/NFT.sol/NFT.json'
nextjs.org/docs/messages/module-no... wait - compiling... event - compiled successfully
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, please could you help me with this, i've been following this course for days now and I'm totally stuck on this.
Once i type npm run dev this is what i get
BarryH@EPT-LT23 MINGW64 ~/digital-marketplace (main)
$ npm run dev
ready - started server on 0.0.0.0:3000, url: localhost:3000
info - Using webpack 5. Reason: Enabled by default nextjs.org/docs/messages/webpack5
event - compiled successfully
event - build page: /
wait - compiling...
error - ./pages/index.js:11:0
Module not found: Can't resolve '../artifacts/contracts/Market.sol/NFTMarket.json'
9 |
10 | import NFT from '../artifacts/contracts/NFT.sol/NFT.json'
Import trace for requested module:
nextjs.org/docs/messages/module-no...
event - build page: /next/dist/pages/_error
wait - compiling...
error - ./pages/index.js:11:0
Module not found: Can't resolve '../artifacts/contracts/Market.sol/NFTMarket.json'
9 |
10 | import NFT from '../artifacts/contracts/NFT.sol/NFT.json'
Import trace for requested module:
nextjs.org/docs/messages/module-no...
wait - compiling...
event - compiled successfully