Tonejs / Tonejs/tonejs.github.io
Tone.js breaking in Safari 14
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 96
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
I was using Tone v13.8.25 for a live project, and now I'm seeing that (only) in Safari 14 it breaks the site due to a reference error during mere import. Here's the error:
ReferenceError: Can't find variable: OscillatorNode
I also tested the Tone.js website (https://tonejs.github.io/) to see what happens with the latest version, and none of the examples run in Safari 14.
The error there:
ReferenceError: Can't find variable: BroadcastChannel
I'm now upgrading my project with the latest stable version, but just wanted to raise a flag that maybe even the latest version needs tweaking?
Safari: 14.0
Tone: 13.8.25 / 14.7.58
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the import failure and website example failures in Safari 14 using Tone.js versions 13.8.25 and 14.7.58, focusing on the reported OscillatorNode and BroadcastChannel reference errors. Done means the site examples and a Tone.js import no longer fail in Safari 14.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100