sholladay / pogo

Server framework for Deno

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not able to run example : server.js

vivekchauhan12000 opened this issue · comments

I have a question: I am trying to run the example server.js which is throwing me these errors =

error: TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
NamedStat
~~~~~~~~~
at https://deno.land/x/pogo@v0.5.1/lib/util/read-dir-stats.ts:24:5

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { FileHandlerOptions } from './helpers/file.ts';
~~~~~~~~~~~~~~~~~~
at https://deno.land/x/pogo@v0.5.1/lib/types.ts:41:10

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { DirectoryHandlerOptions } from './helpers/directory.tsx';
~~~~~~~~~~~~~~~~~~~~~~~
at https://deno.land/x/pogo@v0.5.1/lib/types.ts:42:10

Found 3 errors.

Hi @vivekchauhan12000, thanks for the bug report. This was fixed in commit ab86074 and I just published a new release, v0.5.2, which contains the fix.

Since you tried to run the example with the old version, you probably still have that code in your cache. To force Deno to fetch the latest version and refresh the cache, use the --reload flag. Then it should work.

deno run -A --reload https://deno.land/x/pogo/example/simple-server/run.ts