Git Product home page Git Product logo

Comments (8)

msecret avatar msecret commented on September 7, 2024 4

@anthonymq I just pushed a PR for a fix for the BigInt error: #6. We were compiling our javascript to an unsupported version for one of our dependencies. Feel free to pull that branch down to see if it fixes the issue for you.

We're still looking at another issue with video upload from the canister frontend, you can track that here: #7.

from cancan.

msecret avatar msecret commented on September 7, 2024 1

I just created #11, turns out we had to be even more prescriptive about our browserlist as I believe one of the rules was including an older samsung browser version. Be sure to delete the node_modules/.cache directory as otherwise new browserlist rules might not update in the build. This along with #8 should get video upload working again, but please update if you run into any problems.

from cancan.

y-ang2010 avatar y-ang2010 commented on September 7, 2024

image

I get same question , upload video failed .

Video Size : 32Mb
Video file format : mp4

from cancan.

anthonymq avatar anthonymq commented on September 7, 2024

Okay I think I identified the problem on the local node deployment :
Storing video thumbnail... video.ts:131 Unable to store video thumbnail: TypeError: Cannot convert a BigInt value to a number
Works on the devserver.

from cancan.

lebinh199 avatar lebinh199 commented on September 7, 2024

Hope solve this soon

from cancan.

andrewwylde avatar andrewwylde commented on September 7, 2024

Hey @anthonymq we've got a bug where the compiler sometimes doesn't correctly process some code in one of our dependencies.

It doesn't turn BigInt(2)**BigInt(n+1) into Math.pow(2,n+1), but instead tries to do Math.pow(BigInt) which results in the error you're seeing above..

That change has to happen in a dependency (@dfinity/agent), and we'll update this issue as soon as we've got that part working!

from cancan.

flyq avatar flyq commented on September 7, 2024

Feel free to pull that branch down to see if it fixes the issue for you.

the problem is still here:
(click the picture to get info)
image

image

env

dfx 0.7.0-beta.6

node v15.12.0

browser chrome

from cancan.

taylorham avatar taylorham commented on September 7, 2024

Closed by #11

from cancan.

Related Issues (19)

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.