I have an existing Blazor project that has target framework set to .NET 6.0. After installing Visual Studio 17.4.1 and setting the target framework to .NET 7.0, I get a runtime error:
Uncaught SyntaxError: Cannot use 'import.meta' outside a module (at dotnet..3611wiw0dy.js:8:27)
What should I set to make it work?