Comments (6)
Update: I fixed it by changing all the try catch block errors to be explicitly cast as type 'any' instead of 'unknown'.
try
..
catch(error)
becomes
try
..
catch(error:any)
Although I'm not sure if this is the right approach, I'm not an expert in typescript. I think they changed something in typescript 4 that is requiring explicit type specification of try catch error: https://devblogs.microsoft.com/typescript/announcing-typescript-4-4/#use-unknown-catch-variables
from internet-identity.
Hi, would replacing :any
with :Error
work too? What commit did you use? I'm currently fixing some issues related to dfx 0.8.1 as well.
from internet-identity.
@spencerbug are you still having this issue?
from internet-identity.
@nmattia replacing :any with :Error doesn't work. I'll make a pull request from fork.
I'm not familiar with all of dfinity's processes for pull requests, I assume there are tests that need to run, maybe let me know what I need to do. Glad to help.
catch(error) defaults to type "unknown" which can't be treated as strings, for printing, unless they are typecast to something more specific.
Here: #476
from internet-identity.
Fixed in #476
from internet-identity.
Thanks @spencerbug !
from internet-identity.
Related Issues (20)
- Gradient/blur ghost after warning page
- Ensure maxTimeToLive is bigint and not number
- Fingerprint security key option not found when adding the device to an existing account HOT 7
- Dropdown CSS / HTML HOT 1
- Post vitejs TODOs
- No "Select Remote Device"! HOT 2
- Possible tweaks to the slack action
- IC doesn't provide the option to use a smartphone for signing in HOT 2
- Ict
- latest release seems broken locally HOT 1
- Failures when using password manager Bitwarden to to store passkeys HOT 9
- Dev II wasm broken in `release-2024-01-05` HOT 4
- i`m doing .net maui app with webview for this website and i have an issue HOT 1
- Warning box border gradient covers text
- Cannot display alternative origin on mobile
- Error details caret is misaligned
- Warnbox border gradient is cut off on iPad HOT 9
- Update to dfx 0.12 HOT 2
- Make cards mobile-friendly
- Identity for things? HOT 3
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 internet-identity.