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
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
Tried to follow the docs for a typescript project, and it doesn't work. Multiple warnings on build, multiple warning and errors on run.
TS2769: No overload matches this call.
Overload 1 of 2, '(pattern: string | RegExp, ...handlers: (Polka<Request> | Middleware<Request>)[]): Polka<Request>', gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'string | RegExp'.
Type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is missing the following properties from type 'RegExp': exec, test, source, global, and 12 more.
Come on guys, I understand Sapper is in early development, and some things may change before we hit version 1.0. , but the very Getting started must work.
Also, linting should be available out of the box.
The text was updated successfully, but these errors were encountered:
I did the following changes to src/server.ts and at least it's compiling without errors.
polka()// You can also use Express.use(// compression({ threshold: 0 }),sirv('static',{ dev }),sapper.middleware())// .listen(PORT, err => {// if (err) console.log('error', err);// });.listen(PORT);
First-time Svelte user.
Tried to follow the docs for a typescript project, and it doesn't work. Multiple warnings on
build
, multiplewarning
anderrors
on run.Come on guys, I understand
Sapper is in early development, and some things may change before we hit version 1.0.
, but the veryGetting started
must work.Also, linting should be available out of the box.
The text was updated successfully, but these errors were encountered: