HH Pages Track - Module 1 - Unit 3 - Create Your Site

Hi Team,

When going through the instructions on this page: Create Your Site | Hitchhikers, I keep running into an error on Step 4: Preview Your Site. The following error message appears after I run the npm run dev command:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\HamidHafiz\Documents\hamid_pages_training\node_modules\react-dom\server' imported from C:\Users\HamidHafiz\Documents\hamid_pages_training\node_modules\@yext\pages\dist\dev\server\middleware\sendAppHTML.js
Did you mean to import react-dom/server.js?
    at new NodeError (node:internal/errors:399:5)
    at finalizeResolution (node:internal/modules/esm/resolve:231:11)
    at moduleResolve (node:internal/modules/esm/resolve:850:10)
    at defaultResolve (node:internal/modules/esm/resolve:1058:11)
    at nextResolve (node:internal/modules/esm/loader:164:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:419:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)
    at link (node:internal/modules/esm/module_job:76:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Any ideas on how to fix this?

Best,
Hamid Hafiz

1 Like

Hello @Hamid_Hafiz
Could you able to resolve the issue you were facing?
Have you installed the dependencies in process successfully!