Issue with data-provider during build - src/web.ts - error TS2322 #8855
Replies: 2 comments
-
The TypeScript error suggests the I would suggest pulling the latest changes since I can see on your dockerfile, it mentions Docker builds are completing successfully in the CI environment as well as locally for me (using official Dockerfile): The only other difference I see is the use of proxy and It's possible one of the packages is not resolving correctly based on your build environment (CPU architecture), but try the above first. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your time and input. The Jenkins server connected to the actual build server, transfered files and executed the bash script there - but did not once clean up afterwards. That meant that there was an ancient package "mcp" under {root}/packages which after some time finally bit me in the a** and caused some package incompatibilities and incorrect type definitions. So, lesson learned, always keep a clean build env. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm suddenly having problems building the image myself.
It worked fine until it didn't anymore...
The issue I'm getting is displayed below and is about type incompatibility in "src/web.ts".
I have not changed this part and it also does not build the main branch (only adjusted by setting proxy in Dockerfile).
Did anyone experience his or similar behaviour during the build via
docker build -f Dockerfile
?Error:
Jenkins-Command:
Dockerfile:
Please note that without
npm install --force
I get this error:I've tried a lot of stuff already, I remove existing docker-images before build, the jenkins workspace is cleared before and after builds, etc. but I'm out of ideas.
And I'm not comfortable enough with TypeScript etc to debug or see if this is an actual issue or if there's something wrong with my environment. Because clearly, if there was an issue with the build, it would have popped up by now.
So, if anyone has a solution or ideas of what else I could try, then please, let me know.
It would already help a little to know that it's not a bug in the code but rather a hickup in my build / env.
Beta Was this translation helpful? Give feedback.
All reactions