BhauminB
Denoβ€’16mo agoβ€’
4 replies
Bhaumin

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

error: Relative import path "url" not prefixed with / or ./ or ../
If you want to use a built-in Node module, add a "node:" prefix (ex. "node:url").


But we have added "url/*": "node:url" to our deno.json imports.
Was this page helpful?