TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Typescript cannot support paths in other local projects referenced in the package

Open alamhubb opened this issue 1 year ago • 0 comments

🔍 Search Terms

I have a project A, which has path: "@" configured in it. Then this alais is used in this project. Another project B references the code in project A, and it prompts Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@/syntax' How can I solve this situation?

✅ Viability Checklist

  • [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • [x] This wouldn't change the runtime behavior of existing JavaScript code
  • [x] This could be implemented without emitting different JS based on the types of the expressions
  • [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
  • [x] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
  • [x] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

⭐ Suggestion

none

📃 Motivating Example

none

💻 Use Cases

none

alamhubb avatar Oct 19 '24 14:10 alamhubb