I'm using node 16 inside WSL (somehow that's the only way firebase works w my pc)
anyways - I'm trying to use a top level await in my code and I get an error indicating the await's placement in addition to the following:
⚠ Your requested "node" version "14" doesn't match your global version "12". Using node@12 from host.
I've used n as a version manager inside WSL and NVM for my windows 10 system. Both version 16.
I tried two solutions:
sudo n use 14
sudo n use 16
sadly - nothing happened. I've updated the version every time in the packgage.json and yet - nothing.
I think it's important to note that I'm using Firebase functions - it can probably indicate another issue
thanks in advance!!!