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 creating own instance using NPM

See original GitHub issue

I have tried creating my own instance using NPM, but once I added var playground = require('kotlin-playground'); to my js file I am getting ReferenceError: “navigator is not defined”.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
AlexanderPrendotacommented, Jul 4, 2018

@msasikanth Only client side. Kotlin-Playground can only be loaded in a browser environment (because it doesn’t do anything useful outside of that).

0reactions
msasikanthcommented, Jul 4, 2018

So best option right now is to use the ReactJS or use the script tag?

Read more comments on GitHub >

github_iconTop Results From Across the Web

custom-error-instance - npm
Integrate seamlessly with NodeJS' existing Error implementation. · Extend the Error object without altering it. · Create an inheritance hierarchy ...
Read more >
Node.js — Create Your Own Custom Error - Future Studio
When developing your app, you can create your own errors. ... This tutorial walks you through the creation of your own error class....
Read more >
Using `instanceof` on objects created with constructors from ...
After some debugging I've discovered (somewhat obviously in hindsight) that errors created in 'module-a' are not instances of errors created by ...
Read more >
A Comprehensive Guide To Error Handling In Node.js
An error in Node.js is any instance of the Error object. ... The appropriate way to deliver errors from a JavaScript function varies ......
Read more >
Error - JavaScript - MDN Web Docs - Mozilla
Error is a serializable object, so it can be cloned with ... Creates an instance representing a syntax error. ... Node.js0.10.0.
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