Hello! I think i solved all the problems with my calculator, as it gives me the correct result in every single mathematical problem, but it keeps returning the same error:
- If 2 or more operators are entered consecutively, the operation performed should be the last operator entered (excluding the negative (-) sign.
Uncaught TypeError: Cannot read properties of null (reading ‘length’) (https://esm.sh/v130/react-dom@18.2.0/es2022/react-dom.mjs:9)
Error: Uncaught TypeError: Cannot read properties of null (reading ‘length’) (https://esm.sh/v130/react-dom@18.2.0/es2022/react-dom.mjs:9)
at a.onerror (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:13785)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:112350
at p (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:94539)
at Generator. (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:95876)
at Generator.next (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:94902)
at r (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1169)
at s (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1380)
The project link is: Calculator (codepen.io)
thank you!