Azure / Azurite

A lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies
MIT License
1.8k stars 320 forks source link

Exit due to unhandled error: Unexpected token '??=' #2359

Open Tankzor opened 7 months ago

Tankzor commented 7 months ago

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

EmmaZhu commented 7 months ago

Hi @Tankzor ,

We have a similer issue when connecting to mssql within a docker, and are looking for a fix. Will update you with any progress.