Resolves browser access errors on server when SSR isn't enabled on that page for sveltekit projects.
Was getting, simply importing NightVision modules as previously simply importing like import { NightVision } from 'night-vision'; at the top of the project would try to access browser based functions
window is not defined
ReferenceError: window is not defined
at /node_modules/night-vision/dist/night-vision.js:5092:6
at /node_modules/night-vision/dist/night-vision.js:5093:3
Resolves browser access errors on server when SSR isn't enabled on that page for sveltekit projects.
Was getting, simply importing NightVision modules as previously simply importing like
import { NightVision } from 'night-vision';
at the top of the project would try to access browser based functionsChart would still need to be initialized
onMount
.