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
The missing type does not break the build but is reported as an error in Jetbrains and Vscode. A quick solution for this would be to export out the ServerLoader so that it is available to be used as a type.
The text was updated successfully, but these errors were encountered:
For a potential use-case, with the declarations, one could create or potentially generate the loader$'s as a client and share it as a package with types pre-compiled to minimise the compilation burden.
Which component is affected?
Qwik City (routing)
Describe the bug
When using the new
loader$
like:The exported data loader is yielding a typescript warning:
The cure for this is usually straightforward; it just needs the type declared:
However, this is impossible because
ServerLoader
is not exported out.Reproduction
https://stackblitz.com/edit/qwik-starter-5zm2al?file=src/routes/index.tsx
Steps to reproduce
To see the error, you need to enable declarations in your tsconfig.
System Info
Additional Information
The missing type does not break the build but is reported as an error in Jetbrains and Vscode. A quick solution for this would be to export out the ServerLoader so that it is available to be used as a type.
The text was updated successfully, but these errors were encountered: