To resolve this issue, try downgrading esbuild to version 0.24.0 by running the following command:
esbuild
0.24.0
npm install -D [email protected]
This should fix the build errors related to import.meta.
import.meta