Typescript paths alias doesn't resolve
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- javascript, typescript
- Domaine
- build-system, tooling
Piste de recherche
Start with the module-resolution path used for postcss.config.ts and compare it with the tsconfig.json path alias in the reported Nx monorepo. Reproduce the relative-import and aliased-import cases, then use the existing configuration-loading tests or add a focused regression test showing that the alias resolves successfully.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Trying to use a shared tailwind config in an integrated Nx monorepo. The module resolution is all done with typescript path aliasing rather than package manager workspace module resolution. The shared tailwind config works just fine if I do a relative import ../../libs/shared-tailwind-config.ts but fails with a module failed to resolve if I have a path alias in my tsconfig of @tw: [/libs/shared-tailwind-config.ts]. I have included the postcss.config.ts file in my tsconfig.josn and VS code is able to recognize the import alias correctly in the file.
- Langage dominant
- JavaScript
- Étoiles
- 661
- Forks
- 76
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de postcss/postcss-load-config
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
postcss/postcss-load-config#248 · 1 commentaire ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
postcss/postcss-load-config#225 · 13 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 38/100
postcss/postcss-load-config#221 · 4 commentaires ·
-
How to use async function?Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
postcss/postcss-load-config#212 · 7 commentaires ·
-
Load config from NPM packageOuvertepriority: medium semver: minor type: feature
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
postcss/postcss-load-config#183 · 1 commentaire · 4 réactions ·
Toutes les issues de postcss/postcss-load-config
Issues similaires
-
fix: the live capture mode of check-native-browser.mjs ignores PLAYWRIGHT_CHROMIUM_EXECUTABLEOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
Forrest-Technologies/drover#1040 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
good first issue help wanted
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
erkamyaman/rust-anything#702 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
-
good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
erkamyaman/unslop-anything#231 ·
Les mainteneurs répondent en général sous 1 jour