Build suddenly starts failing with TypeError: /working_dir/src/index.tsx: Invalid Version: 7000***600000
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
The build was working for many months. Suddenly a build failed with this error. I tried locally 'yarn run build' and it is find. Then I built an older commit which was succesfull and it gave me the same error so the code changes is not the case.
To reproduce:
1- Open the https://dev.azure.com/MokoSolution/FMS
2- Run the build pipeline FMS-Portal
3- Start a build from this commit 25dfc204412f0b0ebff61165524fb782538a1052 which was successful on Friday 28th April.
4- It would fail with follwoing:
```
Running 'yarn run build'...
yarn run v***.22.***5
$ react-scripts build
Creating an optimized production build...
Failed to compile.
TypeError: /working_dir/src/index.tsx: Invalid Version: 7000***600000
at transformFile.next ()
at run.next ()
at transform.next ()
```
**Expected behavior**
The build is expected to succeed as before
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Device info (if applicable):**
I have created a supprt ticket and they have suggested to change the ubuntu from latest to 20.04 and it didn't help. Then they suggested to create a self-hosted but setting it up on Mac is not trivial.
**Additional context**
The attached text file is the build yaml.
[FMS-Portal.yml.txt](https://github.com/Azure/static-web-apps/files/11368194/FMS-Portal.yml.txt)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.