Skip to content

Conversation

@Rikearon
Copy link
Contributor

Closes #43

Summary

In the latest version v0.12.0 the following error pops up right when initiating the app after the lib installation:
Unable to resolve "src/core/utils" from "node_modules/@backpackapp-io/react-native-toast/src/components/Toasts.tsx"

Cursor 2024-11-12 22 23 26

Diagnostics

Upon evaluation, the error occurs due to an import located in the components/Toasts.tsx file, where it's done absolutely using the src/ root. This causes the imported error detailed above, which the IDE also noticed when inspecting the file.

Simulator 2024-11-12 22 23 45

Fix

Adjusting the absolute imports (there was already another one, just below the original one that caused the issue, when looking at the master branch) fixes the running issue, and the lib works just as expected.

Additionally, the change has no impact on this repository's example project. Which correctly compiles after the changes, as seen below:

CleanShot 2024-11-12 at 22 37 05

Result

After the adjustment, the consumption in the final application works just as expected.

CleanShot 2024-11-12 at 22 40 28

@nickdebaise
Copy link
Member

Thank you for the PR! Greatly appreciated. Will merge shortly.

@nickdebaise nickdebaise merged commit 0a3d856 into backpackapp-io:master Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

V0.12.0 throws error with EXPO SDK 52

2 participants