Import built-in Node module from deno.json imports
How can we import built-in Node modules by adding imorts to deno.json?
We are getting below error when we do it
But we have added "url/*": "node:url" to our deno.json imports.
4 Replies
You should have
"url": "node:url"
but honestly I'm not sure if we even support itwe tried to add it in import map as you said but getting error: If you want to use a built-in Node module, add a "node:" prefix (ex. "node:url").
Then you'll have to use it with prefix
ok thanks!