-
Notifications
You must be signed in to change notification settings - Fork 401
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
SDKError: Ti is not defined #289
Comments
I added the files to my webpack config, so at least the files are bundled. Ideally we wouldn't need to do this, but at least it works.
|
Tried this workaround but now I am getting below warning-
|
Thanks @jazpearson for suggesting a workaround. We copied files bridge.js and setup-sandobox.js and also switched to node package bundle of pubnub.
|
Background:
When we started using pubnub (v 4.37.x), we started getting could not load bridge.js error.
Issue is described here which is still open #266
bridge.js belongs to vm2, it's used by pubnub -> degenerator -> vm2.
webpack couldn't handle contents of vm2 (bridge.js).
In order to fix this issue, we used pubnub.min.js from pubnub/dist/titanium/pubnub.min.js
Below was the fix added in webpack config:
This temporary fix worked for sometime.
But now we are getting different error "SDKError: Ti is not defined" on below line -
https://github.com/pubnub/javascript/blob/master/lib/networking/modules/titanium.js#L27
Can someone please suggest what might be causing this problem?
Environment Details:
Node v14.18.3
NPM v6.14.15
Webpack v4.46.0
The text was updated successfully, but these errors were encountered: