-
Notifications
You must be signed in to change notification settings - Fork 11
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] Symlink to sap__types is deleted after each npm command #251
Comments
Hi @levkovsb , thanks for bringing this up again. Can you run Best, |
@levkovsb also, can you please describe your setup in more detail or, preferably, provide a minimal reproduction setup? Is cds-types referenced in the mono repo root or in one of the subprojects? |
@daogrady I have tried npm rebuild, it does not solve the issue. We have cds-types referenced in the package.json file in the monorepo root as a devDependency. There we also define our workspaces, e.g. "plugin/cross/*". Then in the plugin/cross/com folder we have its own package.json file that does not reference cds-types. The problem occurs when we run commands like npm publish. |
The symlink is often deleted. if i call mtb build, afterwards it is gone (because it calls npm i). "npm rebuild" does the magic. |
Hi @levkovsb , as @Markus-Schroeder-de suggested, you can try Best, |
Hi @daogrady , Thanks for pointing me to this issue. We are facing the same issue. I have already written the description in #294 (comment). Check also the Known Issue section -> SAP/ai-sdk-js#273 But just for a quick summary also here. We sometimes face the following problem:
This error is flaky. I am not sure when will this happen. But maybe by deleting the Also sometimes, a fresh install in our pipeline works, but sometimes the symlink is missing. Re-trigger the pipeline and the problem can sometimes be gone. We are also maintaining multiple packages in one repo. The interesting thing I find is that putting Hope this issue can be resolved soon. |
Might be an issue with the way {
"compilerOptions": {
/* ... */
"types": [
"./typings.d.ts",
"@cap-js/cds-types"
]
}
} |
Hi @ZhongpinWang , I checked your repository and the similarity with @levkovsb seems to be that you are also using a monorepo. Best, P.S.: in the meanwhile, the suggestion @hakimio brought up is a perfectly valid solution. |
Closing as quasi-duplicate of #318 |
The issue persists in the version 0.6.5. As long as I execute any npm script in one of the workspaces of our monorepo, the symlink is gone and the project is no longer runnable. Please investigate further
Originally posted by @levkovsb in #216 (comment)
The text was updated successfully, but these errors were encountered: