Console error Fraction is not defined deploying project on Netlify

Hello.
I’m trying to upload my project to Netlify but not only I get errors on deploy log but also when I open the published website, it seems like the API calls or whatever related to the functionality of my code is not working and when I open the console, I receive this error telling me “Fraction is not defined” which is basically an NPM package to convert float numbers to fractional numbers and since everything is working fine in the development mode, I don’t know what is going wrong here in deploying on Netlify and I need help with this.

Site name: https://findish.netlify.app/

Site ID: 81157a83-4545-4f2b-86ad-6bde55e54a3f

12:39:06 PM: [ERROR] Deploy logs are currently unavailable. We are working on resolving the issue.

As you can see, this is the weird ERROR log I’m receiving in my deploy log section. (If that helps, I’ve tried uploading my project by VPN on and off both and nothing has changed unfortunately)

I’ve also tried asking Netlify chatbot AI and it couldn’t help.

I’ll appreciate your help because it’s getting confusing that whether it’s related to my fractional package error in the console or the error log I’m receiving.

PS: I’ve linked this project to the corresponding GitHub repository at this address:

@Matin Your runtime issue is unrelated to hosting on Netlify.

This can be confirmed by:

  1. Cloning down your repository
  2. Installing the dependencies with npm i
  3. Running npm run build
  4. Running npx serve dist

You will see precisely the same error that you’re seeing on Netlify:

2 Likes

Well, the issue was indeed the fractional package and after a couple of searches on Stackoverflow and other useful websites, I realized switching to another npm package with the same usage called Fracty is the solution for me.

Your response didn’t directly solve my issue, but it helped me indirectly to figure it out. I’ll still mark it as the accepted answer. Thank you!

That was intentional.

  • You had requested assistance outside of Netlify’s Scope of Support.
  • There’s no compensation for helping, I ultimately have better things to do with my time.
  • Give a man a fish…

My frequent aim is to prevent people sitting on their hands, wasting time barking up the wrong tree.

Quick proof that your issue isn’t what you believe it is, lets you do precisely what you did, research and solve your actual issue while learning along the way.

1 Like

Hey Nathan, there was probably some miscommunication on my end. I didn’t mean to imply that your response wasn’t helpful :sweat_smile:. If it came across that way, I apologize!

I mainly wanted to clarify for future readers that, in my case, I needed to explore other resources for a complete solution. I accepted your answer because it genuinely helped me find my way to the solution, just not ‘directly’ :wink: (which I didn’t mean as any criticism at all!).

Thanks again for your time and guidance! :pray: