-
Notifications
You must be signed in to change notification settings - Fork 36
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
Socket child can fail to initialize due to className mismatch #74
Comments
Ok, so the root cause is that the build process that the Tessel uses does indeed apply a minification step, and I guess |
Yeah, that sounds like the cause. I'm not sure on how this could be resolved, any minification that mangles exported names might trigger this? |
Except, that surely both the caller and module side should be minified to have the same names so it should still line up? |
The problem is that the export is still |
For my memory: the threadedClass PR will help with this issue. There is another issue with the library getting confused after minification whenever we use |
Running my tessel with |
This is resolved in |
Hi, I tried using atem-connection in combination with webpack (using electron) to build a one click application. I assume this issue is the reason the application fails badly. So my Question would be: Whether there is any chance for this issue to be fixed completely in the near future? Digging deeper, I guess the issue I have is not related --> see #106 |
I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
At
src/lib/atemSocket.ts#L114
, thename
of theAtemSocketChild
class can sometimes be a mangled/minified string, such as the single letterc
.Later, when
threadedClass@src/internalApi.ts#L296
loads the same module, it tries to find a class namedc
on the module export, which does not exist, because the actual class name isAtemSocketChild
. This results in the following error being printed:Other information
This is when running on a Tessel 2 which runs Node v8.11.3, I haven't tested any other platforms or Node versions.
I don't actually know how or where this mangling of the class name occurs, nor why.
The text was updated successfully, but these errors were encountered: