Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

118
Visualizações
Project cannot locate imported d3-graphviz module

The project is located at https://github.com/eric-g-97477/blog-ember-d3 which is a fork of this project.

The output of npm list is:

$ npm list                                                                                                                                                                                                                          
blog-ember-d3@0.0.0
├── @ember/jquery@0.6.0
├── @ember/optional-features@0.7.0
├── broccoli-asset-rev@3.0.0
├── d3-graphviz@4.1.1
├── d3-selection@3.0.0
├── d3@5.9.2
├── ember-ajax@5.0.0
├── ember-cli-app-version@3.2.0
├── ember-cli-babel@7.7.3
├── ember-cli-dependency-checker@3.1.0
├── ember-cli-eslint@5.1.0
├── ember-cli-htmlbars-inline-precompile@2.1.0
├── ember-cli-htmlbars@3.0.1
├── ember-cli-inject-live-reload@1.10.2
├── ember-cli-sri@2.1.1
├── ember-cli-template-lint@1.0.0-beta.3
├── ember-cli-uglify@2.1.0
├── ember-cli@3.10.1
├── ember-d3@0.5.1
├── ember-data@3.10.0
├── ember-export-application-global@2.0.0
├── ember-load-initializers@2.0.0
├── ember-maybe-import-regenerator@0.1.6
├── ember-qunit@4.4.1
├── ember-resolver@5.1.3
├── ember-source@3.10.0
├── ember-welcome-page@4.0.0
├── eslint-plugin-ember@6.4.1
├── eslint-plugin-node@9.0.1
├── loader.js@4.7.0
└── qunit-dom@0.8.5

I am trying to import by doing:

import { graphviz } from "d3-graphviz";

and that generates the error:

Uncaught Error: Could not find module `d3-graphviz` imported from `blog-ember-d3/libs/donut-chart`

I am sure this is something silly, but I am not sure what has gone wrong.

My goal was to start with a d3 based project that worked and determine how to get d3-graphviz working within it.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If you add ember-auto-import, you should be able to import from d3-graphviz. ember-auto-import sets up webpack and allows things to "just work" from npm, and is standard in all ember apps since ember-cli 3.16

Also, if you're starting a new app, you may want to update ember-cli so you get the latest blueprint.

npm install -g ember-cli@latest
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda