Skip to content

Typescript 4.4.2 with yarn 3.x. Cannot find modules #45681

Closed
@gizmooo

Description

@gizmooo

Bug Report

typescript cannot find all installed dependencies

sc

🔎 Search Terms

yarn imports

🕗 Version & Regression Information

  • does not work yarn v3.0.1 & typescrtipt v4.4.2
  • works with yarn v3.0.1 & typescript v4.3.5
  • works with npm & typescrtipt v4.4.2

💻 Code

{
  "compilerOptions": {
    "lib": [
      "WebWorker",
      "DOM",
      "DOM.Iterable",
      "ESNext",
      "ScriptHost"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": false,
    "noEmit": false,
    "target": "es2017",
    "sourceMap": true,
    "outDir": "prod/build",
    "baseUrl": "./",
    "paths": {
      "MEDIA/*": ["dev/media/*"],
      "IMAGES/*": ["dev/media/images/*"],
      "TYPES/*": ["dev/js/types/*"]
    }
  },
  "exclude": ["node_modules"],
  "files": [
    "./dev/js/entry.ts"
  ],
  "include": ["dev", "./dev/js/global.d.ts"]
}

🙁 Actual behavior

Typescript v.4.4.x does not work with yarn version 3.x

🙂 Expected behavior

Typescript v.4.4.x finds all dependencies with yarn 3.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions