Skip to content
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

[Bug report] monorepo 子项目 .mpx 文件找不到在tsconfig path 中声明的模块 #1596

Open
MeteorGeminy opened this issue Aug 31, 2024 · 1 comment

Comments

@MeteorGeminy
Copy link

MeteorGeminy commented Aug 31, 2024

问题描述

monorepo 子项目 .mpx 文件找不到在tsconfig path 中声明的模块,如下图:
image

注:

  1. 将子项目 "dinner" 拎出monorepo作为主项目打开,index.mpx 是能正常找到 @dinner/utils 模块;
  2. 子项目 "dinner" 在 index.mpx 中使用相对路径,如 ../../utils 也能正常识别 testFoo 方法。

环境信息描述

  1. macOS 14.5
  2. mpx 2.9
  3. vscode
Version: 1.92.2
Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
Date: 2024-08-14T17:29:30.058Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.5.0
  1. vscode mpx 插件 :v0.2.15
Name: mpx
Id: pagnkelly.mpx
Description: Syntax Highlight for mpx
Version: 0.2.15
Publisher: pagnkelly
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=pagnkelly.mpx
@forzgc
Copy link
Contributor

forzgc commented Sep 20, 2024

官方的mpx插件不支持monorepo,我之前也是因为这个原因换成了 Vue - Official

#1446

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants