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.

Running this example:

const { Deno } = require("deno.ns");

I get the following in Node v14.17.1:

> node test.js
node_modules\deno.ns\dist\deno\stable\classes\PermissionStatus.js:7
class PermissionStatus extends EventTarget {
                               ^

ReferenceError: EventTarget is not defined
    at Object.<anonymous> (node_modules\deno.ns\dist\deno\stable\classes\PermissionStatus.js:7:32)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (node_modules\deno.ns\dist\deno\stable\classes\Permissions.js:5:31)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

This is because EventTarget was not a global until node v15 I think (works in 16). Current LTS version of node is v14. We should try to support at least Node LTS.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
bartlomiejucommented, Oct 19, 2021

Node v14 goes into maintenance period today and Node v16 becomes LTS in a week https://nodejs.org/en/about/releases/

I think we should focus on v16

3reactions
MKRherecommented, Oct 9, 2021

Alternatively, node 16 is active LTS from end of this month (October 26th). Since deno.ns might not be “stable” for a few weeks even by the most optimistic estimate, it might not be so bad to only support active LTS from then (node 16).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js - endoflife.date
Release Released Active Support Se... 19 2 months and 1 week ago. (18 Oct 2022) Ends in 3 months. (01 Apr 2023) En... 18 (...
Read more >
Node.js Release Working Group - GitHub
There are three phases that a Node.js release can be in: 'Current', 'Active Long Term Support (LTS)', and 'Maintenance'. Odd-numbered release lines are ......
Read more >
Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. ... Download for Linux (x64). 18.12.1 LTS Recommended For Most Users.
Read more >
Community support for Node 14 LTS is ending on 30 April 2023
On 30 April 2023, extended support for Node 14 LTS will end. After that date, your applications that are hosted on App Service...
Read more >
Supported Node versions - Node-RED
Supported Node versions. Node-RED currently recommends Node 16.x LTS. Version, Support Level, Notes. < 10.
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