Unhandled Runtime Error on fresh install
See original GitHub issueBug report
Hi, I wanted to give KeystoneJS a try and installed v6 as in the docs described. On opening http://localhost:3000 with either browser, it throws an unhandled exception. I removed everything and tried it a second time with different names etc, but same result.
To Reproduce
yarn create keystone-app
success Installed “create-keystone-app@5.0.0” with binaries:
- create-keystone-app
…
⠧ Installing dependencies with yarn. This may take a few minutes
…
Keystone created a starter project in: keystone-test
…
cd keystone-test
yarn dev
(calling http://localhost:3000/ in browser)
Error message
Unhandled Runtime Error
TypeError: Cannot read properties of undefined (reading 'document')
Call Stack
Module.createFocusTrap
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/pages/_app.js (61799:25)
<unknown>
/_next/static/chunks/pages/_app.js (29159:67)
invokePassiveEffectCreate
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (41577:20)
HTMLUnknownElement.callCallback
/_next/static/chunks/main.js (22040:14)
Object.invokeGuardedCallbackDev
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (22089:16)
invokeGuardedCallback
/_next/static/chunks/main.js (22151:31)
flushPassiveEffectsImpl
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (41664:9)
unstable_runWithPriority
/_next/static/chunks/main.js (48357:12)
runWithPriority$1
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (29371:10)
flushPassiveEffects
/_next/static/chunks/main.js (41537:14)
performSyncWorkOnRoot
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (40359:3)
<unknown>
/_next/static/chunks/main.js (29422:26)
unstable_runWithPriority
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (48357:12)
runWithPriority$1
/_next/static/chunks/main.js (29371:10)
flushSyncCallbackQueueImpl
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (29417:9)
flushSyncCallbackQueue
/_next/static/chunks/main.js (29404:3)
scheduleUpdateOnFiber
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (39983:9)
updateContainer
/_next/static/chunks/main.js (43572:3)
legacyRenderSubtreeIntoContainer
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (44127:5)
Object.render
/_next/static/chunks/main.js (44193:10)
renderReactElement
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (8709:28)
doRender
/_next/static/chunks/main.js (8883:3)
_callee2$
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (8576:20)
tryCatch
/_next/static/chunks/main.js (46829:40)
Generator.invoke [as _invoke]
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (47060:22)
Generator.next
/_next/static/chunks/main.js (46885:21)
asyncGeneratorStep
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (8070:24)
_next
/_next/static/chunks/main.js (8092:9)
<unknown>
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (8099:7)
new Promise
<anonymous>
<unknown>
/_next/static/chunks/main.js (8088:12)
render
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (8617:18)
Router.subscription [as sub]
/_next/static/chunks/main.js (8509:24)
Router.notify
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (13696:19)
Router.set
/_next/static/chunks/main.js (13371:19)
Router._callee$
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (13071:29)
tryCatch
/_next/static/chunks/main.js (46829:40)
Generator.invoke [as _invoke]
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (47060:22)
Generator.next
/_next/static/chunks/main.js (46885:21)
asyncGeneratorStep
file:///C:/Repository/keystone-test/.keystone/admin/.next/static/chunks/main.js (16036:24)
_next
/_next/static/chunks/main.js (16058:9)
System information
- OS: Windows 10
- Browser: Edge Version 93.0.961.52, Firefox 92.0.1
- node: 14.15.1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:14 (3 by maintainers)
Top Results From Across the Web
The Step-by-Step Guide to Fix Runtime Error on Windows 10
Solution 1: Temporarily Disable Microsoft Services; Solution 2: Run the Application in Safe Mode; Solution 3: Ensure That You Have Enough Memory ...
Read more >Unable to launch one application dues to .NET Runtime error ...
Hi, I am not able to launch one of the installed application due to below .NET run time error. Please let me know...
Read more >Fix .NET Runtime Error 1026, Exception code c00000fd
NET Runtime Error 1026, Exception code c00000fd on Windows 10 systems ... To fix it, uninstall the current package and install a fresh...
Read more >How to fix .NET Runtime Error 1026 in Windows? - ugetfix.com
Solution 1. Clean Boot · Press Windows + R, type msconfig, and hit Enter · Go to Services tab and tick the Hide...
Read more >next.js - Facing Error in Sanity like Unhandled Runtime Error
I run this npm install -g @sanity/cli command many times but no progress.. My node -v is 16. next.js · sanity.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has been fixed in version
6.7.1
offocus-trap
- https://github.com/focus-trap/focus-trap/releases/tag/v6.7.1Massive shout-out to the
focus-trap
maintainer, @stefcameron, for the super-quick response 🙏To fix, run
npm i focus-trap@6.6.1