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
I'm new to web development, so I may be missing something obvious. I'm following the setup guide in the README. Why can't I import the modulepreload-polyfill? I am importing this at the top of my alarms.ts, which is where I assume it needs to go.
/opt/homebrew/bin/npm run build
> [email protected] build
> tsc && vite build
alarm/static/alarm/alarms.ts:2:8 - error TS2307: Cannot find module 'vite/modulepreload-polyfill' or its corresponding type declarations.
2 import "vite/modulepreload-polyfill";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in alarm/static/alarm/alarms.ts:2
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm new to web development, so I may be missing something obvious. I'm following the setup guide in the README. Why can't I import the modulepreload-polyfill? I am importing this at the top of my
alarms.ts
, which is where I assume it needs to go.My project structure:
npm packages:
Build error:
Beta Was this translation helpful? Give feedback.
All reactions