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
This is to inform people who use webpack in their apps.
Webpack build configs with the default jsonpFunction name will not be able to use this library.
You will see something like this:
Solution
Modify your webpack output config like this:
Sorry i havent put much effort in explaining the above use case.
It has nothing to do with the way this library is built.
I was referring to the bundled code in the Wolfram Public Cloud and the Wolfram Enterprise Private Cloud.
If you integrate the notebook embedder lib in a real life application which is bundled with Webpack then its most likely that it will conflict with the code fetched from Public Cloud or EPC (whatever is the source of the cloud notebook)
e.g. here is a sample js file fetched when trying to embed an example notebook from the public cloud.
Anyone trying to incorporate this lib into their apps will eventually run into this issue if they use Webpack and havent changed the default jsonp callback configuration.
This comment is to help people overcome this issue because at first we were clueless on how to debug this
or recommend Wolfram to update their webpack configuration to make the integration easier for others.
So the conflict arises due to the use of the default jsonp callback function name.
This is to inform people who use webpack in their apps.
Webpack build configs with the default jsonpFunction name will not be able to use this library.
You will see something like this:
Solution
Modify your webpack output config like this:
Recommendation for Wolfram
You could apply the same config at your end so that this won't be an issue for others
The text was updated successfully, but these errors were encountered: