Comments (5)
should be fixed now
from cuid2.
@geommr Sorry, false positive. Works, you can close this.
from cuid2.
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.
@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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuid2.