You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[11:38:07.603] ERROR (4176): 500 in endpoint /crawl-file:
[11:38:07.604] ERROR (4176): Cannot read properties of undefined (reading 'length')
err: {
"type": "TypeError",
"message": "Cannot read properties of undefined (reading 'length')",
"stack":
TypeError: Cannot read properties of undefined (reading 'length')
at StringScriptSnapshot.getLength (C:\Users\USER\AppData\Roaming\JetBrains\WebStorm2024.2\plugins\previewjs\daemon\dist\node_modules\.pnpm\typescript@5.3.3\node_modules\typescript\lib\typescript.js:129325:30)
at getSnapshotText (C:\Users\USER\AppData\Roaming\JetBrains\WebStorm2024.2\plugins\previewjs\daemon\dist\node_modules\.pnpm\typescript@5.3.3\node_modules\typescript\lib\typescript.js:130993:33)
at createLanguageServiceSourceFile (C:\Users\USER\AppData\Roaming\JetBrains\WebStorm2024.2\plugins\previewjs\daemon\dist\node_modules\.pnpm\typescript@5.3.3\node_modules\typescript\lib\typescript.js:142659:51)
at acquireOrUpdateDocument (C:\Users\USER\AppData\Roaming\JetBrains\WebStorm2024.2\plugins\previewjs\daemon\dist\node_modules\.pnpm\typescript@5.3.3\node_modules\typescript\lib\typescript.js:134253:28)
at Object.acquireDocumentWithKey (C:\Users\USER\AppData\Roaming\JetBrains\WebStorm2024.2\plugins\previewjs\daemon\dist\node_modules\.pnpm\typescript@5.3.3\node_modules\typescript\lib\typescript.js:134176:14)
at getOrCreateSourceFileByPath (C:\Users\USER\AppData\Roaming\JetBrains\WebStorm2024.2\plugins\previewjs\daemon\dist\node_modules\.pnpm\typescript@5.3.3\node_modules\typescript\lib\typescript.js:142913:33)
at Object.getOrCreateSourceFile (C:\Users\USER\AppData\Roaming\JetBrains\WebStorm2024.2\plugins\previewjs\daemon\dist\node_modules\.pnpm\typescript@5.3.3\node_modules\typescript\lib\typescript.js:142892:16)
at C:\Users\USER\AppData\Roaming\JetBrains\WebStorm2024.2\plugins\previewjs\daemon\dist\node_modules\.pnpm\typescript@5.3.3\node_modules\typescript\lib\typescript.js:142816:44
at Object.getSourceFileWithCache [as getSourceFile] (C:\Users\USER\AppData\Roaming\JetBrains\WebStorm2024.2\plugins\previewjs\daemon\dist\node_modules\.pnpm\typescript@5.3.3\node_modules\typescript\lib\typescript.js:118637:26)
at findSourceFileWorker (C:\Users\USER\AppData\Roaming\JetBrains\WebStorm2024.2\plugins\previewjs\daemon\dist\node_modules\.pnpm\typescript@5.3.3\node_modules\typescript\lib\typescript.js:120939:25)
}
Browser logs (useful for rendering errors)
No response
Repo link (if available)
No response
Anything else?
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a next.js project, and I wanted to use Preview.js. Sadly, it doesn't really work for me at all. I am getting the same error every time.
Reproduction
Example component
Preview.js version
1.28.3
Framework
Next.js 14.2.13, React 18.3.1
System Info
Used Package Manager
npm
Preview.js logs (check bottom panel in IntelliJ)
Browser logs (useful for rendering errors)
No response
Repo link (if available)
No response
Anything else?
The text was updated successfully, but these errors were encountered: