Unresolved import 'anvil.server'

Did you
python -m pip install anvil-uplink
after you had already started visual studio? If so, you might want to restart to make the linter recognize the package.

Also possible that your visual studio is not pointing to the same version of python as you have installed anvil-server on?

These are both shots in the dark, but I have done this on a few machines and had the same first time use errors as you described.