Hello all,
I’ve gotten stuck on the Front-end library project 25+5 clock. I’m building it in React with Sass styling. I wanted to build it with functional components & hooks to get practice.
I haven’t gotten all the features needed in yet but want to clear two errors first.
First, the timer is throwing an error at multiple tests (reading ‘1’ or ‘2’)
Cannot read properties of null (reading '1')
TypeError: Cannot read properties of null (reading '1')
at u (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:584:149729)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:584:153167
at l (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:584:79440)
at Generator._invoke (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:584:79193)
at Generator.next (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:584:79799)
at r (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1054)
at s (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1265)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1324
at new Promise (<anonymous>)
at n.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1205
For the first error, I haven’t figured out a way to test where the null value is coming from . I’ve read the issue may running the render before the DOM is initialized (probably on the
element where the timer is). I haven’t been able to find a solution that works.
The second error is
Script error. (:0)
Error: Script error. (:0)
at r.onerror (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:575:14032)
For the second error, honestly, I have no clue where to start.
I’m trying to learn my way through as much as possible, so any suggestions about what to research, where to look, or how to test the errors are greatly appreciated!
Thank you!