DenoDDeno
Powered by
yurkimusY
Denoβ€’16mo ago
yurkimus

IntelliSense doesn't work with npm:minio@8.0.2

Looking for help if someone have solved this already.

I have the following
deno.json
deno.json
:

{
  "imports": {
    "minio": "npm:minio@8.0.2",

    ...other packages

    "source/": "./source/"
  }
}
{
  "imports": {
    "minio": "npm:minio@8.0.2",

    ...other packages

    "source/": "./source/"
  }
}


After I run the installation script:

deno install --vendor --entrypoint source/*
deno install --vendor --entrypoint source/*


There are
vendor
vendor
and
node_modules
node_modules
directories appearing in the root directory.

The
exports
exports
part of
minio
minio
's
package.json
package.json
:

"exports": {
    ".": {
      "require": "./dist/main/minio.js",
      "types": "./types/esm/minio.d.ts",
      "default": "./dist/esm/minio.mjs"
    },
    "./dist/main/internal/*": null,
    "./dist/main/*": {
      "require": "./dist/main/*",
      "default": null
    },
    "./dist/esm/internal/*": null,
    "./dist/esm/*": {
      "import": "./dist/esm/*",
      "default": null
    },
    "./package.json": "./package.json"
  },
"exports": {
    ".": {
      "require": "./dist/main/minio.js",
      "types": "./types/esm/minio.d.ts",
      "default": "./dist/esm/minio.mjs"
    },
    "./dist/main/internal/*": null,
    "./dist/main/*": {
      "require": "./dist/main/*",
      "default": null
    },
    "./dist/esm/internal/*": null,
    "./dist/esm/*": {
      "import": "./dist/esm/*",
      "default": null
    },
    "./package.json": "./package.json"
  },


I have attached
node_modules/minio/package.json
node_modules/minio/package.json
to the message as well.

I didn't find any info in the Deno Docs on how the deno reads the package.json, so if someone can explain this as well I will be happy.
minio-dependency.png
package.json3.98KB
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

npm:undici doesn't work
η₯žη₯žη₯ž / help
3y ago
Import-IntelliSense with Fresh and VSCode doesn't work as expected
ChrisGoCChrisGo / help
3y ago
Deno NPM VSCode Intellisense
ybabtsYybabts / help
4y ago
Vinxi project such as solid-start doesn't work with Deno 2.0
CianticCCiantic / help
17mo ago