Hey, I was trying to build supertokens-node locall...
# support-questions-legacy
n
Hey, I was trying to build supertokens-node locally and facing below error on
npm run build-pretty
r
Hey!
What version of ts are you using?
n
Copy code
typescript@^4.0.2:
  version "4.8.2"
  resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790"
  integrity sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==
r
Hmm. We use 3.8.3 for building. Can you switch to that and try?
n
ok.
failiing with
../../../node_modules/@types/whatwg-url/index.d.ts:73:43 - error TS1005: ',' expected.
I am trying to use inside lib folder of another npm package and I think it is confusing node_modules.
Let me dig deeper in this angle. I will let you know what I find
r
hmm ok
n
It was certainly the issue with how I was using supertoken lib. I somehow messed up with directory which it cds to, to run the build. Thanks for helping 🙂
r
Great