Sitecore Demo Edge site: Server Error: Cannot find module for page: /[[...path]]

This is a shady error. It happens only once and the very first-time of the Sitecore Demo Edge site load. 

Context and Solution:

As part of setting up Sitecore Demo Edge site locally and executing up.ps1 after setting up node modules (location: \Sitecore.Demo.Edge\Website\src\rendering), the home page doesn't appear first-time and the following error is thrown. If I believe myself, all that needs to be done is manually install npm packages (in a new cmd prompt) then in a "new" PowerShell prompt, execute up.ps1. The error was gone and the site loaded fine thereafter!

To prove this definitely worked, I commented the npm install related lines from up.ps1, then manually performed npm install in the concerned folder and, then opened a new PS prompt, executed up.ps1 to see the site load fine!


Error:



Server Error

Error: Cannot find module for page: /[[...path]]

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
pageNotFoundError
file:///C:/app/node_modules/next/dist/server/require.js (16:17)
getPagePath
file:///C:/app/node_modules/next/dist/server/require.js (39:15)
Object.requirePage
file:///C:/app/node_modules/next/dist/server/require.js (44:22)
Object.loadComponents
file:///C:/app/node_modules/next/dist/server/load-components.js (58:23)
Object.loadStaticPaths
file:///C:/app/node_modules/next/dist/server/dev/static-paths-worker.js (20:51)
execFunction
file:///C:/app/node_modules/next/dist/compiled/jest-worker/processChild.js (1:2826)
execHelper
file:///C:/app/node_modules/next/dist/compiled/jest-worker/processChild.js (1:2484)
execMethod
file:///C:/app/node_modules/next/dist/compiled/jest-worker/processChild.js (1:2572)
process.messageListener
file:///C:/app/node_modules/next/dist/compiled/jest-worker/processChild.js (1:1282)
process.emit
events.js (376:20)


Comments

Popular Posts