#TS2339: Property 'ROUTER' does not exist on type 'Window & typeof globalThis'.

1 messages · Page 1 of 1 (latest)

graceful swan
#

I am not sure where window.ROUTER would come from. It's certainly not from solidjs.

#

If you set it somewhere, you should also declare it globally.

#
declare global {
  var ROUTER: EventTarget;
}
graceful swan
#

A misunderstanding. That's SolidStart, not solid.js.

#

In any case, the TS definitions of SolidStart are not finished, unfortunately.

#

Yes, but you can also use it without SolidStart, it just wouldn't expose the ROUTER global.

#

From what I heard from Ryan, the changes that are planned should mostly be under the hood, so I wouldn't expect any breaking changes at all. There are a few use cases that still need to be fixed after internally switching to Astro, but apart from that, most of the work is fixing types, adding tests and document everything.

#

if you are using the current version of SolidStart, you shouldn't have the new version and I'm sure Ryan will only release the next changes once they fulfil the previous requirements.

#

We all like it very much, which is why we're here. I am the maintainer of @solidjs/testing-library as well as of a few of our @solid-primitives packages myself.

#

Thank you for using it. I'm happy to help.

#

If you have any pressing testing issues, you may ping me directly.