import from `expo-asset` giving error

I am upgrading my app to expo-33 but changing the import to be from module, getting an error while trying to import from
import * as Asset from 'expo-asset';
the error is console.error: fontFamily "couplet" is not a system font has not been loaded through Font.loadAsync.
On reverting to
import {Asset} from expo;
everything works as expected.
Appreciate any help!


The correct import syntax for the expo-asset module is
import { Asset } from 'expo-asset';

Also, make sure you’ve installed expo-font and imported it with:
import * as Font from 'expo-font';

1 Like

Thank you so much! it solved the issue.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.