squint 2025-03-05

Hi all, Is it possible to use squint with node 12? I've been trying for the past couple of hours, but maybe I'm doing something wrong

what's up with node 12?

node 12 is end of life for years already, I recommend upgrading

I was using v20, but just found out the production server has v12 installed. It'll take ages before we get approval to upgrade, and deployment is due this week.

What error do you get with 12 then

$ npx squint watch
file:///C:/home/.../project/node_modules/squint-cljs/src/squint/core.js:1495
      return conj(args[0] ?? [], ...iterable(args[1]));
                           ^

SyntaxError: Unexpected token '?'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
The null coalescing operator

Can you try to patch that in your local node modules ?

i'll bet babel can transpile it to be compatible with node 12

👍 1

sure I could also do it manually but if Jeremy could try it in their node_modules, it's easier to find out of that's the only thing

👍 1

totally fair

I'll try it out early tomorrow cause it's late now.

yes, babel worked

🎉 2