question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running example

See original GitHub issue

Running 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bdearborncommented, Jun 25, 2020

I can confirm that I am able to run the example now. Thank you!

0reactions
sholladaycommented, Jun 25, 2020

@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.ts file 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-types works.

Could you try the example again and let me know how it goes? You may need to use the --reload flag. I hope it works for you! 🤞

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found