Skip to content

Tone.js breaking in Safari 14 #25

@mklasinc

Description

@mklasinc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions