complete-javascript-course icon indicating copy to clipboard operation
complete-javascript-course copied to clipboard

Fraction package error during deployment in Netlify using GitHub repository

Open SalehAXPI opened this issue 2 years ago • 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() : ""

SalehAXPI avatar Feb 03 '23 06:02 SalehAXPI