question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Cannot read property 'sjcl' of undefined`

See original GitHub issue

I’m attempting run my tests using ava and jsdom but I get the error Cannot read property 'sjcl' of undefined from braintree-web.

I haven’t been able to find any helpful resources on how this should be handled in headless testing.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
crookedneighborcommented, Nov 3, 2016

@SokratisVidros @clindsey

Add global.Braintree = {}; in your set up file and it should work.

0reactions
SokratisVidroscommented, Nov 3, 2016

Worked like a charm! Thanks a lot!

Regards,


Sokratis Vidros Senior Software Engineer @ Workable http://workable.com/

2016-11-03 16:55 GMT+02:00 Blade Barringer notifications@github.com:

@SokratisVidros https://github.com/SokratisVidros @clindsey https://github.com/clindsey

Add global.Braintree = {}; in your set up file and it should work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/braintree/braintree-web/issues/228#issuecomment-258166156, or mute the thread https://github.com/notifications/unsubscribe-auth/ABSi5tzJ5vZlehSq2MuC4JfCVaZFfa2Rks5q6fXSgaJpZM4KhxWB .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems with SJCL "Cannot read property 'replace' of ...
The Problem in my Example was that i tried to acces result.ct but result is a stringified JSON so accessing it's attribute ct...
Read more >
TypeError: Cannot read property 'concat' of Undefined in JS
The "Cannot read property 'concat' of undefined" error occurs when calling the concat() method on an undefined value. To solve the error, provide...
Read more >
crypto-js - Google Code
ID Status Summary 134 Fixed Clarify license Type‑Defect Priority‑Medium 131 Invalid Unnecessary padding Type‑Defect Priority‑Medium 125 New RIPEMD Type‑Defect Priority‑Medium
Read more >
Cannot read property 'post' of undefined - Framework7 Forum
Hello i cant make request. Error: Cannot read property 'post' of undefined My app.js file: import $$ from 'dom7'; import Framework7 from ...
Read more >
Home - SJCL
“Higher education has set me free from the cycle of poverty, crime, ... he would later learn was Property Law, San Joaquin College...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found