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.

[beta] const breaks following challenges

See original GitHub issue

Challenge work-with-dynamic-data-in-d3 has an issue. User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

The test case will not pass with the information below. However this same code does work in the next challenge “Add Inline Styling to Elements”.

    
    
<body>
<script>
  const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];
  
  d3.select("body").selectAll("h2")
    .data(dataset)
    .enter()
    .append("h2")
    .text((d) => (d + " USD"));

    
    // Add your code above this line
</script>
</body>

    ```
    

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
petercollingridgecommented, Jan 21, 2017

I also had a problem with this exercise, with it throwing an error: Uncaught SyntaxError: Identifier ‘dataset’ has already been declared

When I removed the line const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9]; from the exercise it worked (the same is true for all the following exercises). I don’t know if the variable dataset is somehow being carried over from an earlier exercise.

0reactions
systimoticcommented, Jan 23, 2017

Looks like Quincy opened another issue and assigned Berkeley to it (#12762), so I’ll close this in favour of that. Thanks for reporting everybody!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Beta | Apple Developer Forums
After iPhone restored I am stuck at the activation screen. In setup assistant after selecting country and signing into my WiFi my iPhone...
Read more >
Beta-blockers: Types, Uses and Side Effects - Cleveland Clinic
Beta -blockers are a class of medicines most commonly used for problems involving your heart and your circulatory system.
Read more >
Official Bug/Exploit Reporting Thread - Beta Weekend 2 - Reddit
Here are the bugs I experienced while playing the BETA on Xbox Series X. *Display flickers when changing attachments for weapon while in...
Read more >
Announcing TypeScript 4.7 Beta - Microsoft Developer Blogs
Today we are excited to announce the beta release of TypeScript 4.7! To get started using the beta, you can use npm with...
Read more >
Invalid Hook Call Warning - React
There are three common reasons you might be seeing it: You might have mismatching versions of React and React DOM. You might be...
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