Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

257
Views
When we use d3 with rails 6 with webpack it thwos below error

Using ruby 2.7.3 Rails 6.1.3

I am using d3 but it throws the below error on console -

TypeError: setting getter-only property "format" using
Ie https://d3js.org/d3.v4.min.js:2
<anonymous> https://d3js.org/d3.v4.min.js:2
<anonymous> https://d3js.org/d3.v4.min.js:2
<anonymous> https://d3js.org/d3.v4.min.js:2

On the view page, I have added the below code -

   <script src="https://d3js.org/d3.v4.min.js">
   </script>
   <%= javascript_pack_tag "home/index" %>

Below line added app/javascript/packs/application.js -

 import * as d3 from "d3"
 window.d3 = d3

Please give suggestions on these.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!