If you are using symlinks in any part of the path to your project, that can cause this error to show. It appears the VSCode extension for playwright does not recognize/follow symlinks, or at least it cannot find the "test server" across them. I ran into this same issue, but when I opened up the project via the physical path, I did not receive the same error.