Exit due to unhandled error: Unexpected token '??='
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 393
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 36
Description
When attempting to run the azurite executable bundled with Visual Studio 2022 Professional 17.8.6 (and earlier versions). It fails to start with:
```
Cron: c:\program files\microsoft visual studio\2022\professional\common7\ide\extensions\microsoft\Azure Storage Emulator\azurite.exe --location "C:\Users\jmoll\AppData\Local\.vstools\azurite" --debug "C:\Users\jmoll\AppData\Local\.vstools\azurite\debug.log" --skipApiVersionCheck
Cron: Exit due to unhandled error: Unexpected token '??='
```
The same applies when running outside of VS:
```
PS C:\> .\azurite.bat
C:\>"C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\Microsoft\Azure Storage Emulator\azurite.exe" --location C:\Azurite --debug C:\Azurite\debug.log --skipApiVersionCheck
Exit due to unhandled error: Unexpected token '??='
```
I have the env var `AZURITE_DB` set to (something similar to) `mssql://user:password@localhost/azurite`, but no help if I remove that. Can't seem to find any other configuration. Several of my colleagues have the same issue, but we have no idea how to start to diagnose without the debug log working.
Assistance appreciated :)
### Which service(blob, file, queue, table) does this issue concern?
All
### Which version of the Azurite was used?
3.26.0
### Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
Visual Studio 2022 bundled
### What's the Node.js version?
21.6.1
### What problem was encountered?
Fails to start - please see above
### Steps to reproduce the issue?
Nothing is written to the debug log - seems to fail very early
### Have you found a mitigation/solution?
No
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.