For me, the problem was the "includes" array in the tsconfig.json file. The file (in my case a playwright config file) that was throwing the import.meta error was not being picked up. This may seem obvious, but when the error itself points out a module resolution issue, you may forget to check here.