You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to Node.js v20.5.1.
Type ".help"for more information.
> import React from 'https://esm.sh/react'
import React from 'https://esm.sh/react'
^^^^^^
Uncaught:
SyntaxError: Cannot use import statement inside the Node.js REPL, alternatively use dynamic import: const { default: React } = await import("https://esm.sh/react");
I know it's possible to use TLA, like var react = await import('https://esm.sh/react'). But it's also helpful to support esm in rep. 😄
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I know it's possible to use TLA, like
var react = await import('https://esm.sh/react')
. But it's also helpful to support esm in rep. 😄Beta Was this translation helpful? Give feedback.
All reactions