GithubHelp home page GithubHelp logo

Comments (7)

ongteckwu avatar ongteckwu commented on June 3, 2024

ok new build. Try again. Tq

from typeid-ts.

benjick avatar benjick commented on June 3, 2024

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)

from typeid-ts.

ongteckwu avatar ongteckwu commented on June 3, 2024

ok fixed try again ben

from typeid-ts.

benjick avatar benjick commented on June 3, 2024

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)

from typeid-ts.

ongteckwu avatar ongteckwu commented on June 3, 2024

ok pushed a new one, hope this works. If not will really need you to raise a PR instead.

from typeid-ts.

benjick avatar benjick commented on June 3, 2024

It worked! 🙏 thank you @ongteckwu!

from typeid-ts.

nadilas avatar nadilas commented on June 3, 2024

@benjick Is 0.3.8 the version that should be working?

from typeid-ts.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.