I am working on an app from already existing Sitecore application which is migrated as JSS application in the Disconnected mode, I have created my \data\routes\en.json but when I start the application and it is opened in the browser and the below error pops up in the cli and I have defined the Footer placeholder everywhere I can think of, but have I missed something.

(node:11272) UnhandledPromiseRejectionWarning: Error: The rendering UID referenced in the placeholder /Footer-{9865465D-2444-4868-ABE1-6BFCE6904065}-0 was not defined in the layout definition.
    at getOrCreatePlaceholderPath (C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:144:19)
    at getOrCreatePlaceholderPath (C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:165:16)
    at C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:200:27
    at Array.forEach (<anonymous>)
    at convertManifestLayoutDataToLayoutServiceFormat (C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:199:10)
    at defaultCustomizeRoute (C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:235:37)
    at C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:287:41
    at step (C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:40:23)
    at Object.next (C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:21:53)
    at C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:15:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:11:12)
    at disconnectedLayoutServiceMiddleware (C:\Projects\my-jss-app\node_modules\@sitecore-jss\sitecore-jss-dev-tools\dist\disconnected-server\layout-service.js:251:20)
    at Layer.handle [as handle_request] (C:\Projects\my-jss-app\node_modules\express\lib\router\layer.js:95:5)
    at trim_prefix (C:\Projects\my-jss-app\node_modules\express\lib\router\index.js:317:13)
    at C:\Projects\my-jss-app\node_modules\express\lib\router\index.js:284:7
(node:11272) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
  • If you're on community Slack, can you please DM me the contents of your /data folder to look at? – Kam Figy Jun 21 at 14:06
  • @KamFigy I found what was the problem, it was that in my route Json data I had the uids for the content items, when I removed them, everything went to normal. – ivayloc Jun 22 at 7:47

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.