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
The only way to add an npm: module to Deno's cache is to:
Import it with a static import. Not ideal since it forces you to execute the package's code which does not make sense for front-end packages.
Use a package.json file.
It's also difficult to get the source code of npm: modules, unless the "nodeModulesDir" option is enabled.
Supporting npm: scheme or finding alternative ways to cache and obtain the source code of npm: modules that don't rely on the node_modules folder or the package.json file could enable better Deno-first tooling.
The text was updated successfully, but these errors were encountered:
I've been trying to build an application that uses the popular oak web server. The latest version of oak has an npm dependency (npm:[email protected]). This causes deno emit (and anything that requires a cache) to fail...
Currently,
deno_cache
only supports URL imports.The only way to add an
npm:
module to Deno's cache is to:package.json
file.It's also difficult to get the source code of
npm:
modules, unless the"nodeModulesDir"
option is enabled.Supporting
npm:
scheme or finding alternative ways to cache and obtain the source code ofnpm:
modules that don't rely on thenode_modules
folder or thepackage.json
file could enable better Deno-first tooling.The text was updated successfully, but these errors were encountered: