You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Magenta in a Next.js project, but when I try to import anything it gives me the following error:
node_modules/@magenta/music/esm/coconet/coconet_utils.js (4:7) @ eval
ReferenceError: navigator is not defined
null
I'm importing something like this: import { SoundFontPlayer } from '@magenta/music' in my index.js file—what's the recommended pattern for importing from Magenta? I've previously used import * as mm from @magenta/music/es6, but that gives me the error error - ReferenceError: self is not defined. Any help is appreciated!
The text was updated successfully, but these errors were encountered:
I'm trying to use Magenta in a Next.js project, but when I try to import anything it gives me the following error:
I'm importing something like this:
import { SoundFontPlayer } from '@magenta/music'
in myindex.js
file—what's the recommended pattern for importing from Magenta? I've previously usedimport * as mm from @magenta/music/es6
, but that gives me the errorerror - ReferenceError: self is not defined
. Any help is appreciated!The text was updated successfully, but these errors were encountered: