kit: Cannot read properties of undefined (reading 'universal')
Describe the bug
We got the following alert in Sentry:
Reproduction
Not sure what is triggering this, if you give me a direction i can try to create a repro.
Logs
No response
System Info
System:
OS: macOS 14.5
CPU: (8) arm64 Apple M1 Pro
Memory: 121.86 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
pnpm: 9.1.1 - /opt/homebrew/bin/pnpm
bun: 1.0.0 - ~/.bun/bin/bun
Browsers:
Brave Browser: 125.1.66.118
Chrome: 126.0.6478.61
Edge: 126.0.2592.61
Safari: 17.5
Severity
annoyance
Additional Information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (19 by maintainers)
Weird. There shouldn’t be a type error for reading universal if it is undefined since there’s an optional chain operator (unless node is undefined)EDIT: will have to look into why
nodeis undefined hereWe’ve had progress on reproducing the
Failed to fetch dynamically imported moduleissue consistently. Read https://github.com/sveltejs/kit/issues/12592 for more info 👍