Skip to content

Update README for NextJS Apps #371

Open
@laurapadilla

Description

@laurapadilla

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());

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation related changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions