I am trying to use expo and nextjs for my web app, and I have tried implementing the the steps listed in the doc to enable me use fonts and images, however I keep getting this error
error - ./assets/fonts/Fontisto.ttf 1:0 Module parse failed: Unexpected character ' ' (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (Source code omitted for this binary file)
below is my nex.config.js
const { withExpo } = require('@expo/next-adapter');
const withImages = require('next-images');
const withFonts = require('next-fonts');
// module.exports = withExpo({
// projectRoot: __dirname,
// });
//
// module.exports = withExpo(
// withFonts({
// projectRoot: __dirname,
// })
// );
//
// module.exports = withExpo(
// withImages({
// projectRoot: __dirname,
// })
// );
module.exports = withExpo(
[
withFonts,
withImages,
],
{ projectRoot: __dirname }
);
This is what I use that works: