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
Because the dom library is included in the root tsconfig.json, there are typings in server-side only node which should not exist. This can make it hard to debug issues where the browser typings are masking that an object is possibly undefined.
Recommendation
Split the root tsconfig.json into a server and browser version and propagate the change downstream to the project, or otherwise confine node typings to server-only library code, and dom typings to browser-only library code.
The text was updated successfully, but these errors were encountered:
jakehamtexas
changed the title
Constraint node typings to node-only code and dom typings to browser-only code
Constrain node typings to node-only code and dom typings to browser-only code
Aug 27, 2021
Context
See for some context: #1374
Because the
dom
library is included in the roottsconfig.json
, there are typings in server-side only node which should not exist. This can make it hard to debug issues where the browser typings are masking that an object is possibly undefined.Recommendation
Split the root
tsconfig.json
into a server and browser version and propagate the change downstream to the project, or otherwise confinenode
typings to server-only library code, anddom
typings to browser-only library code.The text was updated successfully, but these errors were encountered: