Closed mvolonnino closed 10 months ago
@Taarna - Ah okay cool! So it sounds like once thats fixed we should be good to add this back? Thanks for the reply!
I am also getting the SPAlert error. I share the error message because I got a different message than the Issue author.
❌ (../../node_modules/burnt/ios/BurntModule.swift:13:64)
11 | case custom
12 |
> 13 | func toSPAlertIconPreset(_ options: AlertOptions?) throws -> SPAlertIconPreset {
| ^ cannot find type 'SPAlertIconPreset' in scope
14 | switch self {
15 | case .done:
16 | return .done
❌ (../../node_modules/burnt/ios/BurntModule.swift:39:29)
37 | case none
38 |
> 39 | func toSPAlertHaptic() -> SPAlertHaptic {
| ^ cannot find type 'SPAlertHaptic' in scope
40 | switch self {
41 | case .success:
42 | return .success
❌ (../../node_modules/burnt/ios/BurntModule.swift:245:18)
243 | }
244 |
> 245 | let view = SPAlertView(
| ^ cannot find 'SPAlertView' in scope
246 | title: options.title,
247 | message: options.message,
248 | preset: preset ?? .done)
Same error here using Tamagui Toast.... But in my case I'm trying to build on eas
Anyone found a fix for this?
I wonder if this is a versioning issue and they released a new version?
I also encountered an EAS build issue (only for IOS). I first tried to build the app with the default settings (Xcode v14) and when doing that I saw similar error messages as the writer of this issue. Then I changed the image of the IOS builds to "latest" (Xcode v15) and encountered a different error message:
Also, I noticed that I am using burnt version 0.11.7, but I do not see this in the releases of the Github repo?
Looks like they rewrote the library and broke it all lol. Let me try to peg to the right version
Can you try burnt
version 0.12 (latest version) and see if that fixes it?
It's working, thanks!
Yup, working for me as well, appreciate it! Already added it back in thats how NASTY these toasts are. Would love to see something close for Android as well!!
Confirmed upgrading to 0.12 fixed this issue
Fixes ship in under 24 hours — welcome to open source ⚡️
@nandorojo legend!
Had these alerts hooked up and working which is why this is odd to me but getting fastlane build errors during my eas build phase for my expo app.
To make sure it was this libray, i had to remove
burnt
. Once i did was able to build again successfully.Followed the docs as well to get it working in Expo and like I said had it working and already made builds through EAS just fine.
I do have some code now that updates
Appearance
manually withAppearance.setColorScheme()
-> I need this as my users can set their color mode to match the OS or be light & dark. If they select light or dark and the match os is toggled off, then native components did not update, so i added the Appearance.setColorScheme(light | dark | null) to match which works with things likeAlert
from RN, it also worked on development builds for your burnt alerts & toasts as well but been running into the error above trying to build new builds through EAS.