Error when running example
See original GitHub issueRunning the first example on deno results in an error.
import pogo from 'https://deno.land/x/pogo/main.ts';
const server = pogo.server({ port : 3000 });
server.router.get('/', () => {
return 'Hello, world!';
});
server.start();
deno run --unstable --allow-read=\ –allow-write=\ –allow-net .\server.js _error: ‘implements’, ‘interface’, ‘let’, ‘package’, ‘private’, ‘protected’, ‘public’, ‘static’, or ‘yield’ cannot be used as an identifier in strict mode at https://cdn.pika.dev/-/csstype@v2.6.10-9lGFwmNeuxj9xXremWKA/dist=es2019,mode=exports/index.d.ts:1:7,Expected Comma, got Some(Word(StandardLonghandProperties)) at https://cdn.pika.dev/-/csstype@v2.6.10-9lGFwmNeuxj9xXremWKA/dist=es2019,mode=exports/index.d.ts:1:17_
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
node.js - Troubleshooting 'Cannot GET /' Error when running ...
I am trying to run the 'Example Backend' from the Codecademy course 'Setting Up Postman - Learn Express Routes' as part of my...
Read more >Error running example B1 - Getting Started - Geant4 Forum
I am brand new to Geant4. Attempting to run example B1 run1.mac results in a fatal exception and core dump with the following...
Read more >devtools::check() Error when checking examples
I'm getting an error which seems wrong when running check(), not sure how to fix this or if it's a bug? The error...
Read more >1E: Errors | Computer Science Circles - University of Waterloo
A run-time error happens when Python understands what you are saying, but runs into ... Here is an example comparing a run-time error...
Read more >Error running example · Issue #58 · vistalab/PRFmodel - GitHub
I am getting an error when trying to run the prfsynth image in the example. I am wondering if i need install a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I can confirm that I am able to run the example now. Thank you!
@bdearborn Good news! I was finally able to reproduce your error and I was able to work around it with commit https://github.com/sholladay/pogo/commit/54f92d71f10e441a67314c866da42e9ff3adc3d4.
I still think the error when using Pika is probably an issue with Deno itself, as Deno seems to be interpreting the
.d.tsfile delivered by Pika as a TypeScript source code file rather than a type definition file. But for now, using jspm.dev and loading the type definitions manually using@deno-typesworks.Could you try the example again and let me know how it goes? You may need to use the
--reloadflag. I hope it works for you! 🤞