RequestHanlder type not exported
See original GitHub issueQwik Version
0.0.41
Operating System (or Browser)
macOS 12.5
Node Version (if applicable)
18.7.0
Which component is affected?
Qwik City
Expected Behaviour
I would expect the code to be correct, but although the typecheck passes, I get these warnings:
- Module’“@builder.io/qwik-city”’ has no exported member ‘RequestHandler’.
- Binding element ‘request’ (or ‘params’) implicitly has an ‘any’ type.
This affects several files. And, indeed, RequestHandler
is not exported, so why is there an import of it? Strange.
Actual Behaviour
The app works, but I get a lot of complaints in VSCode because it imports types that have not been exported. Not a showstopper, but annoying and maybe an easy fix?
Additional Information
No response
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Types are not exported except for RequestHandler · Issue #294
Would be great to export other types defined in https://github.com/ctimmerm/axios-mock-adapter/blob/master/types/index.d.ts This would make ...
Read more >Module has no exported member, 'Request' - Stack Overflow
Because Request and Response are Object types, I assume they should be left in upper-case? import * as express from 'express'; // import...
Read more >Types • Docs • SvelteKit
The following types can be imported from @sveltejs/kit : ... Generate a fallback page for a static webserver to use when no route...
Read more >Exporting Result Sets | Apache Solr Reference Guide 7.5
All the fields being sorted and exported must have docValues set to true. For more information, see the section on DocValues. The /export...
Read more >AWS Lambda function handler in Node.js
This indicates the handler method that's exported from the index.js file. The runtime passes three arguments to the handler method. The first argument...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@chasm @nnelgxorz was having the same issue. can confirm latest version of qwik-city (
v0.0.32
) resolves the issueHey @chasm! Can you run
npm I @builder.io/qwik-city@latest
and see if that resolves the issue?It looks like the starters are still set to use a prior version of Qwik City