Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update README for NextJS #370

laurawatters started this conversation in Ideas
Nov 16, 2022 · 1 comments · 2 replies
Discussion options

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());
You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

Hey @laurapadilla, thanks for reaching out! <3

Are there any other extra steps you need to take to use react95 in a Next app besides the font loading thing? or are there any other advices to make the process easier? if so, we could create separate markdown file with instructions specifically for Next.js.

If not, then I think we could just add this below the Getting started section of our README. 🤓

You must be logged in to vote
2 replies
Comment options

@arturbien yep I think it was just the font loading thing! I can't remember the specific error but it was something like we can't load ms_sans_serif and adding that bit of code fixed the error. If I come across anything else I'll let you know :)

Comment options

ok. let's wait then and when you're ready would you be kind to submit a PR? :) good to have another contributor here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /