Cannot read properties of undefined (reading 'isStoryMissing')
Closed this issue · 1 comments
pietrofxq commented
Bug report
I have two storybook tests that are failing in chromatic. The stack trace is related to chromatic playwright code:
page.evaluate: TypeError: Cannot read properties of undefined (reading 'isStoryMissing')
at checkStoryMissing (eval at evaluate (:192:30), <anonymous>:1:64)
at UtilityScript.evaluate (<anonymous>:194:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at ChromeRenderer.renderSpec (/opt/capture/src/chromatic-lib/capture/playwright-renderer/playwrightRenderer.js:734:25)
at ChromeRenderer.renderSnapshot (/opt/capture/src/chromatic-lib/capture/playwright-renderer/playwrightRenderer.js:441:21)
at ChromeRenderer.captureSpecs (/opt/capture/src/chromatic-lib/capture/playwright-renderer/playwrightRenderer.js:313:9)
at ChromeRenderer.executeWithCallback (/opt/capture/src/chromatic-lib/capture/playwright-renderer/playwrightRenderer.js:101:14)
at Capture.execute (/opt/capture/src/chromatic-lib/capture/capture.js:282:5)
at FargateWorker.processJob (/opt/capture/src/worker.ts:258:7)
at FargateWorker.handleJob (/opt/capture/src/worker.ts:137:7)
at FargateWorker.run (/opt/capture/src/worker.ts:50:9)
at start (/opt/capture/src/index.ts:33:5)
Visiting the storybook in chromatic the error does not show up. The component is rendered correctly for a few seconds and then a 500 page shows up:
![image](https://private-user-images.githubusercontent.com/6238029/268390621-3544c28c-e251-4f18-9645-dfd3e719869b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1MzUyMTgsIm5iZiI6MTcyMDUzNDkxOCwicGF0aCI6Ii82MjM4MDI5LzI2ODM5MDYyMS0zNTQ0YzI4Yy1lMjUxLTRmMTgtOTY0NS1kZmQzZTcxOTg2OWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDlUMTQyMTU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTE4M2FiYzc0ZTg2YmJiMzc2NDZmZDg0YjI4NWI4ZWQ3ZTliYmNiMDVhOWQwNmE3ZDFiZDY4ZTI1YmY1ZDFhYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.sypZvClxOlB89hpnlovRw5AlIIFOEaYun66wKrDZSRU)
winkerVSbecks commented
@pietrofxq if this is still an issue, please reach out via support and we'll be able to help you better: https://www.chromatic.com/docs/support/