Open half0wl opened 11 months ago
ok new build. Try again. Tq
I'm getting something similar on 0.3.1 when building my nextjs project, when I have strict=true:
./node_modules/typeid-ts/src/base32.ts:17:5
Type error: Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
15 |
16 | // 10 byte timestamp
> 17 | buffer[0] = alphabet[(src[0] & 224) >> 5]
| ^
18 | buffer[1] = alphabet[src[0] & 31]
19 | buffer[2] = alphabet[(src[1] & 248) >> 3]
20 | buffer[3] = alphabet[((src[1] & 7) << 2) | ((src[2] & 192) >> 6)]
error: script "build" exited with code 1 (SIGHUP)
ok fixed try again ben
Hey @ongteckwu, thanks for the quick reply. Sadly I still get an error on 0.3.7. I'm using NextJS btw
./node_modules/typeid-ts/src/base32.ts:31:5
Type error: Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
29 |
30 | // 10 byte timestamp
> 31 | buffer[0] = alphabet[(src[0] & 224) >> 5]
| ^
32 | buffer[1] = alphabet[src[0] & 31]
33 | buffer[2] = alphabet[(src[1] & 248) >> 3]
34 | buffer[3] = alphabet[((src[1] & 7) << 2) | ((src[2] & 192) >> 6)]
error: script "build" exited with code 1 (SIGHUP)
ok pushed a new one, hope this works. If not will really need you to raise a PR instead.
It worked! 🙏 thank you @ongteckwu!
@benjick Is 0.3.8
the version that should be working?
strict=true
in tsconfigReceive error:
On v0.3.1, seems related to #7