-
Notifications
You must be signed in to change notification settings - Fork 199
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
"MPEGMode is not defined" #86
Comments
Hi Don, same here! The previous fix unfortunately caused some issues with modules relying on implicitly & improperly loaded submodules. The following changes fix at least my pipeline, I hope yours as well. Until there is a new version out, you need to edit the respective files in your
|
Also having the same issue with sveltekit, waiting for PR to be merged and new version deployed |
Any update on this conversation guys ? I have the same issue |
I'm still having to make these manual changes despite using 1.2.1. |
same issue too |
I was using this approach to linking with unreleased deps for a while and it was working, but at the moment for me neither that approach nor direct linking to 1.2.1 works. This issue shouldn't have been closed yet; we need a working release thanks! (BTW, I found that unlinking on both ends and re-linking did the trick, but a new release would be so much easier) |
I have the same issue still. Why is it closed? |
still |
Try audio-encoder npm . works. |
it seems audio-encoder uses lamejs and i have the same err ;( |
Ok sorry. I must have done the manual fix - which is pretty easy to do.
Tom Bancroft
+447974 983701
Sent from my iPhone
… On 9 Apr 2022, at 09:21, Sergey ***@***.***> wrote:
Try audio-encoder npm . works.
it seems audio-encoder uses lamejs and i have the same err ;(
just copied their example to my app
***@***.***
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
It's pretty dirty, but this repo fixed it for me if you don't want to manually each time: It's dirty as hell of course, I hope this gets resolved. Also, this repo might do what most people want with less boilerplate, it has lamejs bundled into it and doesn't suffer from this issue: |
Is there something I'm missing about this? The issue has been closed for a while, but I am still experiencing the same problem. This fix works, when can it be expected to be included in production?
|
The issue is fixed in the latest release on Github, just not on NPM apparently. You can use this as a workaround in your "dependencies": {
"lamejs": "github:zhuker/lamejs"
} |
Great! Worked for me. |
@viniciusgusmao it doesn't work for me :( |
could be you're using mic-recorder like i was and this one carries a 3 year old version of lamejs which you will have to manually override, even with this solve from @jgentes |
@TVNielsen Im using lamejs directly |
i was too, but also using another module which also was and it was that
module that didn't pick up the direct github reference or in any effect
ended up having an internal version of lamejs which was at least not the
one with the updated code for the example above direct.
So in my case it was the same file which would error in the lamejs version
without the direct github link or well at least another than this, and
finding that folder and replacing it with the suggested one pulled from git
also, did solve the problem. Seems it is some change to parent scope
variables which was impacting the library.
Den ons. 11. jan. 2023 kl. 02.45 skrev Khoa Le ***@***.***>:
… @TVNielsen <https://github.com/TVNielsen> Im using lamejs directly
—
Reply to this email directly, view it on GitHub
<#86 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUHDKGCZ56BPKWEEIUUSJLWRYGD5ANCNFSM5JSNTU4A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Med venlig hilsen,
*Thomas V. Nielsen*
email: ***@***.***
Telefon: 24 60 88 56
|
Declaring global variables can help:
|
have you done |
Hi.
I'm hitting an error in the new update (1.2.1 vs. 1.2.0):
Uncaught (in promise) ReferenceError: MPEGMode is not defined
at Lame.js:135
at e.lame_init (Lame.js:229)
at new e.exports.Mp3Encoder (index.js:100)
at export-audio.js:80
Where I'm call this:
-- Don Tillman
The text was updated successfully, but these errors were encountered: