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.

Deno does not support require! Please add ES import, examples and documentation for Deno / #1288

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

3reactions
Soremwarcommented, Mar 6, 2021

@michailVestnik DayJS is already supported through NPM compatibility

import dayjs from "https://cdn.skypack.dev/dayjs@1.10.4";
// Import locale
import "https://cdn.skypack.dev/dayjs@1.10.4/locale/es";

const current_time = dayjs();

const current_time_pretty = current_time.locale('es').format('D de MMMM, YYYY h:mm A');

console.log(current_time);
console.log(current_time_pretty);

@iamkun Adding a note about Deno compatibility in the docs would be awesome

2reactions
Soremwarcommented, Apr 13, 2021

@stillalivx Dammit, you made me look it up for you XD

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deno — A modern runtime for JavaScript and TypeScript
Deno is a simple, modern runtime for JavaScript and TypeScript that uses V8 and is built in Rust.
Read more >
Deno Deploy
Deno Deploy is a distributed system that runs JavaScript, TypeScript, and WebAssembly at the edge, worldwide. ... The service deeply integrates the V8...
Read more >
Deno - A modern runtime for JavaScript and TypeScript. - GitHub
Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. Features. Secure by...
Read more >
Deno Support in JetBrains IDEs – Things You Need to Know
1, you can get support for Deno in WebStorm and other JetBrains IDEs, including PhpStorm, IntelliJ IDEA Ultimate, and PyCharm Professional.
Read more >
What is Deno, and how is it different from Node.js?
Deno supports TypeScript out of the box ... Deno makes it easy to use TypeScript without the need for any config files. Still,...
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