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

Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'imscISD') #254

Open
abhidev54 opened this issue Jan 18, 2024 · 4 comments

Comments

@abhidev54
Copy link

abhidev54 commented Jan 18, 2024

Hi Team,

I am using one library which internally uses imscjs library for CC handling.
I am getting below error, do you know how to resolve or ignore this error ?

Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'imscISD')
at 2206 (isd.js:809:42)
at t (bootstrap:19:32)
at 89953 (main.js:27:23)
at t (bootstrap:19:32)
at 69785 (hotkeys.esm.js:619:1)
at t (bootstrap:19:32)
at sharing:42:435
at t.m. (consumes:196:23)
at t (bootstrap:19:32)
at 46463 (8052.ff23f179.chunk.js:1:2899)

isd.js is creating issue, below is problematic code snippet, I am not even calling this file but somehow it get triggered, since imscISD is not defined globally, it is throwing error.
(typeof exports === 'undefined' ? this.imscISD = {} : exports,
typeof imscNames === 'undefined' ? require("./names") : imscNames,
typeof imscStyles === 'undefined' ? require("./styles") : imscStyles,
typeof imscUtils === 'undefined' ? require("./utils") : imscUtils
);

can you please suggest if you have came across same issue earlier.

Regards.
Abhishek

@palemieux
Copy link
Contributor

Can you provide more details on your runtime and development environment?

@abhidev54
Copy link
Author

Hi @palemieux ,

Actually I am deploying on AWS using Jenkins and building using webpack.

@palemieux
Copy link
Contributor

imscJS is built using browserify, so there might be an incompatibility somewhere. Are you packaging imsc.js using webpack or building imsc.js using webpack?

@palemieux
Copy link
Contributor

@abhidev54 Does the proposed move to ES6 resolve your issue?

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