-
Notifications
You must be signed in to change notification settings - Fork 495
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Zod and typescript issues when running weather-typescript-server
To Reproduce
Steps to reproduce the behavior:
pnpm installpnpm run build
Expected behavior
A clear and concise description of what you expected to happen.
Logs
> tsc && node -e "require('fs').chmodSync('build/index.js', '755')"
src/index.ts:3:19 - error TS2307: Cannot find module 'zod' or its corresponding type declarations.
3 import { z } from "zod";
~~~~~
src/index.ts:89:23 - error TS18046: 'state' is of type 'unknown'.
89 const stateCode = state.toUpperCase();
~~~~~
src/index.ts:143:49 - error TS18046: 'latitude' is of type 'unknown'.
143 const pointsUrl = `${NWS_API_BASE}/points/${latitude.toFixed(4)},${longitude.toFixed(4)}`;
~~~~~~~~
src/index.ts:143:72 - error TS18046: 'longitude' is of type 'unknown'.
143 const pointsUrl = `${NWS_API_BASE}/points/${latitude.toFixed(4)},${longitude.toFixed(4)}`;
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working