exercism / exercism/website

TypeError: Math.floor is not a function. (In 'Math.floor(s*10)', 'Math.floor' is 6.4)

Open
#9,475 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
548
Forks
168
Avg merge
1d 8h
Merged PRs (30d)
22

Description

## Error

```
Math.floor is not a function. (In 'Math.floor(s*10)', 'Math.floor' is 6.4)
```

## Stack trace

```
../node_modules/@codemirror/view/dist/index.js:5058 in HeightOracle.mustRefreshForHeights
../node_modules/@codemirror/view/dist/index.js:6005 in ViewState.measure
../node_modules/@codemirror/view/dist/index.js:7718 in EditorView.measure
../node_modules/@sentry/browser/src/helpers.ts:117 in sentryWrapped
```

## Tracking Details
- **Project**: exercism-js
- **Sentry**: [TypeError: Math.floor is not a function. (In 'Math.floor(s*10)', 'Math.floor' is 6.4)](https://thalamus-ai.sentry.io/issues/145230497/)
- **Culprit**: HeightOracle.mustRefreshForHeights(@codemirror/view/dist/index)
- **First seen:** Sep 6, 2026

Contributor guide

Open the contributing guide

Research direction

Start with the Sentry report and the @codemirror/view stack trace, especially HeightOracle.mustRefreshForHeights in the referenced dist/index.js location. Reproduce the Math.floor failure in the website editor, identify the relevant dependency or integration cause, and confirm the error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.