Skip to content
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

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

Open
Tankzor opened this issue Feb 7, 2024 · 1 comment
Open

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

Tankzor opened this issue Feb 7, 2024 · 1 comment

Comments

@Tankzor
Copy link

Tankzor commented Feb 7, 2024

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
Copy link
Collaborator

EmmaZhu commented Feb 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants