You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the mono-repo approach in my development, which means I placed two repositories side by side so that imports can be automatically resolved. However, when it comes to deployment, I packaged one of them into an npm package and loaded it from node_modules, but the imports no longer work. I've tried adding directories and using exclude to exclude certain files, but it didn't work.
Does anyone have a solution to this issue? Thank you.
tranlate into chinese:
我开发时采用的mono-repo的方式,即将两个仓库并列,这样引入可以自动导入。但如果上线上,我将其中一个打成npm包,从node_modules中加载,就不能导入。试着添加了dirs目录和exclude排除等,没有生效。
请问大家有没有遇到的解决办法,谢谢
Describe the bug
I used the mono-repo approach in my development, which means I placed two repositories side by side so that imports can be automatically resolved. However, when it comes to deployment, I packaged one of them into an npm package and loaded it from node_modules, but the imports no longer work. I've tried adding directories and using exclude to exclude certain files, but it didn't work.
Does anyone have a solution to this issue? Thank you.
tranlate into chinese:
我开发时采用的mono-repo的方式,即将两个仓库并列,这样引入可以自动导入。但如果上线上,我将其中一个打成npm包,从node_modules中加载,就不能导入。试着添加了dirs目录和exclude排除等,没有生效。
请问大家有没有遇到的解决办法,谢谢
Reproduction
report
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: