Open
Description
I added this in the Discussions
but adding here as well for extra visibility
Hello! I am using the react95 package in a NextJS app and was getting an error because it wasn't able to properly load the fonts front the package. I think it's worth to update the README with the following instructions:
- Add next-transpile-modules and next-fonts dependencies:
npm install --save-dev next-transpile-modules next-fonts
// or
yarn add next-transpile-modules next-fonts
- Edit your next.config.js file to something like:
const withFonts = require('next-fonts');
const withTM = require('next-transpile-modules')([
'react95',
]);
module.exports = withTM(withFonts());