-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Regression]: tsconfig.json
's compilerOptions.paths
no longer working in 1.47
#32480
Comments
@mrmckeb Could you please share a full repro? We need the project structure, package.json and tsconfig.json at least to make sure we understand your setup. |
It looks like importing Here's a minimal reproduction: https://github.com/nickdbush/playwright-repro |
Error: Cannot find package '@src/modules' imported from /qa/Playwright/src/global/home.ts
|
tsconfig.json
's compilerOptions.paths
no longer working in 1.47tsconfig.json
's compilerOptions.paths
no longer working in 1.47
Sorry I didn't supply a repro @dgozman - thanks @nickdbush for beating me to it! |
…pescript behaviour for resolving `index.js` and `package.json` through path mapping (microsoft#32078)" This reverts commit effb1ae. This broke path mapping into directories in ESM mode. References microsoft#32480.
…ts with path mapping We now hopefully align with `moduleResolution: bundler` tsconfig option, allowing directory imports in every scenario, and allowing proper module imports when not going through the type mapping. This regressed in microsoft#32078. Fixes microsoft#32480, fixes microsoft#31811.
Version
1.47.0
Steps to reproduce
tsconfig.json
#/utils/my-util
.Expected behavior
This worked as expected in 1.46.
Actual behavior
Error:
Additional context
I assume this is related to the
tsconfig
option in 1.47, but didn't dig into the issue yet sorry.Environment
The text was updated successfully, but these errors were encountered: