plotly / plotly/angular-plotly.js
Angular 19 specs won't run
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- TypeScript
- Estrelas
- 242
- Forks
- 81
- Merge médio
- 8h 48min
- PRs com merge (30d)
- 18
Descrição
When using this library in an Angular 19 application, I'm having an issue running my test suite. None of the tests run due to the following:
✔ Browser application bundle generation complete.
./node_modules/plotly.js-dist-min/plotly.min.js - Error: Module not found: Error: Can't resolve 'd3-array' in '.../node_modules/plotly.js-dist-min'
./node_modules/plotly.js-dist-min/plotly.min.js - Error: Module not found: Error: Can't resolve 'd3-collection' in '.../node_modules/plotly.js-dist-min'
./node_modules/plotly.js-dist-min/plotly.min.js - Error: Module not found: Error: Can't resolve 'd3-dispatch' in '.../node_modules/plotly.js-dist-min'
./node_modules/plotly.js-dist-min/plotly.min.js - Error: Module not found: Error: Can't resolve 'd3-geo' in '.../node_modules/plotly.js-dist-min'
./node_modules/plotly.js-dist-min/plotly.min.js - Error: Module not found: Error: Can't resolve 'd3-path' in '.../node_modules/plotly.js-dist-min'
./node_modules/plotly.js-dist-min/plotly.min.js - Error: Module not found: Error: Can't resolve 'd3-quadtree' in '.../node_modules/plotly.js-dist-min'
./node_modules/plotly.js-dist-min/plotly.min.js - Error: Module not found: Error: Can't resolve 'd3-shape' in '.../node_modules/plotly.js-dist-min'
./node_modules/plotly.js-dist-min/plotly.min.js - Error: Module not found: Error: Can't resolve 'd3-time' in '.../node_modules/plotly.js-dist-min'
./node_modules/plotly.js-dist-min/plotly.min.js - Error: Module not found: Error: Can't resolve 'd3-timer' in '.../node_modules/plotly.js-dist-min'
./node_modules/plotly.js-dist-min/plotly.min.js - Error: Module not found: Error: Can't resolve 'elementary-circuits-directed-graph' in '.../node_modules/plotly.js-dist-min'
I'm not sure how to diagnose this and the plotly.js github doesn't show any issues like this in their repository. Could I get some help getting pointed in the right direction on diagnosing the issue here and overcoming it?
For what it is worth, the plots work great when serving the application, so I'm hopeful that there is something I need to do to get my specs running again.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece reproduzindo a falha da suíte de testes do Angular 19 e inspecione os erros de resolução de módulos reportados para node_modules/plotly.js-dist-min/plotly.min.js. Compare o build de testes com o build de serving e, em seguida, confirme que as dependências ausentes foram resolvidas e que os specs são executados com sucesso.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- angular, typescript
- Domínio
- frontend, testing-qa
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100