Giter Club home page Giter Club logo

Comments (5)

geommr avatar geommr commented on June 30, 2024 1

should be fixed now

from cuid2.

srmncnk avatar srmncnk commented on June 30, 2024 1

@geommr Sorry, false positive. Works, you can close this.

from cuid2.

geommr avatar geommr commented on June 30, 2024

Hey, thanks for reporting this. Yes your workaround should work fine, its just one source of entropy from many.
I got a working solution for web without adding 3rd party dependencies using dart:html but I got into (unrelated) issues that are preventing tests from running. I'll try to publish the new version by the end of the week.

from cuid2.

srmncnk avatar srmncnk commented on June 30, 2024

@geommr This is still not working. Actually the problem is in touching anything relating to Platform in web. See the stack trace below:

Error: Unsupported operation: Platform._localHostname
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49      throw_
dart-sdk/lib/_internal/js_dev_runtime/patch/io_patch.dart 254:5                   _localHostname
dart-sdk/lib/io/platform_impl.dart 72:18                                          get localHostname
dart-sdk/lib/io/platform.dart 66:43                                               get _localHostname
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 872:8   get
dart-sdk/lib/io/platform.dart 129:38                                              get localHostname
packages/cuid2/src/cuid2_base.dart 93:31                                          [_createFingerprint]

from cuid2.

geommr avatar geommr commented on June 30, 2024

@srmncnk weird, it works on scaffolded flutter web app and Platform shouldnt even be invoked. can you give me a minimum reproducible example? or more details about the host?

from cuid2.

Related Issues (1)

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.