GithubHelp home page GithubHelp logo

Comments (5)

aph5nt avatar aph5nt commented on August 21, 2024 3

solution: update tsconfig.json to

{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es6",
    "outDir": "dist",
    "rootDir": ".",
    "sourceMap": true,
    "strict": false,
    "skipLibCheck": true,
  }
}

to be precise: I added "skipLibCheck": true,

from web3-token.

bytesbay avatar bytesbay commented on August 21, 2024 1

Thanks for the report. Let me check in the morning

from web3-token.

aph5nt avatar aph5nt commented on August 21, 2024

it works fine in vue3 project, but for azure functions it wont compile. i also tried with brand new fresh az and it still fails

from web3-token.

aph5nt avatar aph5nt commented on August 21, 2024

plain node js project works fine

const Web3Token = require("web3-token");

async function execute() {
    const token = "XXXX";
    const { address, body } = await Web3Token.verify(token);
      
      console.log(address, body)
}

execute();

returns

0x3.... {    
  uri: 'https://localhost:8081/',
  nonce: '36578978',
  'web3-token-version': '2',
  'chain-id': '1',
  'issued-at': '2022-10-18T20:52:12.266Z',      
  'expiration-time': '2022-10-19T20:52:12.267Z',
  statement: 'Sign message to authenticate'     
}

from web3-token.

bytesbay avatar bytesbay commented on August 21, 2024

Anyway still cannot get why it happens and what do i need to update in my package build config 👀

from web3-token.

Related Issues (20)

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.