jonasschmedtmann/complete-javascript-course

Fraction package error during deployment in Netlify using GitHub repository

SalehAXPI opened this issue · 0 comments

The solution to the Fraction package problem that occurs when deploying on Netlify using the GitHub repository(Not Uploading Locally) is to use another package called Fracty instead of Fraction.

First uninstall Fraction package

npm uninstall Fraction

Then install Fracty package

npm install fracty

At the end import the package and use its function in the recipeView markup

import fraction from "fracty";

ing.quantity ? fraction(ing.quantity).toString() : ""