xssnick / TON-Torrent

TON Storage UI
GNU General Public License v2.0
99 stars 6 forks source link

Build error "error TS2322: Type 'Timer' is not assignable to type 'number'" #18

Closed igor9105 closed 11 months ago

igor9105 commented 11 months ago

Hi! I got error during build package. Please see output from cmd below. I have tried different version of wails 2.6.0 and 2.5.1 and got same error, I have tried because warning appears from logs and give advice change version.

# Building target: linux/amd64

  • Generating bindings: 
Done.
  • Installing frontend dependencies: 
Done.
  • Compiling frontend: 

    > frontend@0.0.0 build
    > tsc && vite build

    src/components/ModalAddTorrent.tsx(63,9): error TS2322: Type 'Timer' is not assignable to type 'number'.
  ERROR   exit status 2
xssnick commented 11 months ago

Looks like depends on nodejs or typescript version, I found that I have node v16.17 and typescript v10.9.1

But anyway looks like an uncaught issue, i will update and check later.

igor9105 commented 11 months ago

I have : Node.js --version v21.2.0
typescript@5.3.2 tsc --version 10.2.4 I have tried update typescript version but got message that I already use latest version

xssnick commented 11 months ago

I've changed code a bit, could you please pull from master and try again?

igor9105 commented 11 months ago
# Building target: linux/amd64

  • Generating bindings: 
Done.
  • Installing frontend dependencies: 
Done.
  • Compiling frontend: 
Done.
  • Compiling application: 
Done.
  • Packaging application: 
Done.

Build complete, thanks.