question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RequestHanlder type not exported

See original GitHub issue

Qwik 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?

Screen Shot 2022-08-10 at 15 39 48

Additional Information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mr-motocommented, Aug 10, 2022

@chasm @nnelgxorz was having the same issue. can confirm latest version of qwik-city (v0.0.32) resolves the issue

1reaction
nnelgxorzcommented, Aug 10, 2022

Hey @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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found