Open itslenny opened 4 years ago
@itslenny Did you fix this?
having the same issue
build.min.js:3 Uncaught TypeError: Cannot use 'in' operator to search for 'String' in undefined
at da (build.min.js:3)
at build.min.js:3
at Object../node_modules/branch-sdk/dist/build.min.js (build.min.js:174)
at __webpack_require__ (bootstrap:79)
at Module../src/shared/core/services/events/branch.service.ts (direct-transaction.service.ts:10)
at __webpack_require__ (bootstrap:79)
at Module../src/app/services/event.service.ts (currency.service.ts:16)
at __webpack_require__ (bootstrap:79)
at Module../src/app/onboarding/run-onboarding/run-onboarding.component.ts (main.js:32730)
at __webpack_require__ (bootstrap:79)
In order to fix it you should call branch.init() in component loading in your route, not in parent, just on page where you need branchIo.
temporary solution:
edit the minified bundle build.min.js
, ca = "undefined" != typeof window && window === this ? this : "undefined" != typeof global && null != global ? global : window;
// , ca = "undefined" != typeof window && window === this ? this : "undefined" != typeof global && null != global ? global : this;
it just work and i dont know why they didnt fix it for so long
@jaslioin Thanks so much! That worked :-)
Any chance for an official release?
@jwangler-branch with a recent release, I'd have assumed this was fixed. But alas! It's still an issue!
When loading the branch-sdk npm package I get this error
which traces to this line in the branch sdk
f in c || (c[f] = {});
.Even if I don't "use" the branch sdk I get this error. Just by importing it this error fires.