Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to import from @magenta/music #625

Open
DronHazra opened this issue Apr 3, 2022 · 1 comment
Open

unable to import from @magenta/music #625

DronHazra opened this issue Apr 3, 2022 · 1 comment

Comments

@DronHazra
Copy link

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

Screen Shot 2022-04-03 at 5 07 04 PM

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!

@5t33
Copy link

5t33 commented May 2, 2022

Also getting this error:

const core = require('@magenta/music/node/core');

results in MODULE_NOT_FOUND

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants