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
examples/ directory:.nitro folder wasn't built yet for examples in the examples/, which we can ignore for 'source code type checking' as end-users will build those types correctly when they are building those examples.
test/ directory: also missing .nitro folder with corresponding types, which we should ignore for test/fixture as it can have its own tsconfig.json for type checks. (can be partially fix with feat: enable response type infer for API routes with params #222)
src/ directory: most type errors occurs, some are due to global type's name collision, some are missing discriminating union or mismatch input value.
Environment
Node: v16.13
Nitropack: v0.4.4
Reproduction
open the following Stackblitz clone repo will automatically run
tsc --noEmit
start command, then errors are logged in theTerminal panel
.https://stackblitz.com/edit/github-tkzhuy?file=.stackblitzrc
Describe the bug
After running type check using typescript's
tsc --noEmit
commands, shows the following errors:Errors can be separated into 3 parts:
.nitro
folder wasn't built yet for examples in theexamples/
, which we can ignore for 'source code type checking' as end-users will build those types correctly when they are building those examples..nitro
folder with corresponding types, which we should ignore fortest/fixture
as it can have its owntsconfig.json
for type checks. (can be partially fix with feat: enable response type infer for API routes with params #222)Additional context
No response
Logs
No response
corresponding PR: #269
The text was updated successfully, but these errors were encountered: