Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing vue app with vitest and vue-plotly won't load document #58

Open
diogosimao opened this issue Jul 26, 2024 · 0 comments
Open

Testing vue app with vitest and vue-plotly won't load document #58

diogosimao opened this issue Jul 26, 2024 · 0 comments

Comments

@diogosimao
Copy link

diogosimao commented Jul 26, 2024

Reading document of undefined is throw by plotly.js

FAIL  ***.spec.js [ ***.spec.js ]
TypeError: Cannot read properties of undefined (reading 'document')
❯ node_modules/vue-plotly/dist/webpack:/vue-plotly/node_modules/d3/d3.js:8:1
❯ Object.6e58 node_modules/vue-plotly/dist/webpack:/vue-plotly/node_modules/d3/d3.js:9554:2
❯ __webpack_require__ node_modules/vue-plotly/dist/webpack:/vue-plotly/webpack/bootstrap:19:1
❯ Object.fc26 node_modules/vue-plotly/dist/webpack:/vue-plotly/node_modules/plotly.js/src/lib/index.js:11:10
❯ __webpack_require__ node_modules/vue-plotly/dist/webpack:/vue-plotly/webpack/bootstrap:19:1
❯ Object.046b node_modules/vue-plotly/dist/webpack:/vue-plotly/node_modules/plotly.js/build/plotcss.js:3:11
❯ __webpack_require__ node_modules/vue-plotly/dist/webpack:/vue-plotly/webpack/bootstrap:19:1
❯ Object.c4e0 node_modules/vue-plotly/dist/webpack:/vue-plotly/node_modules/plotly.js/src/core.js:18:1
❯ __webpack_require__ node_modules/vue-plotly/dist/webpack:/vue-plotly/webpack/bootstrap:19:1
❯ Object.c17d node_modules/vue-plotly/dist/webpack:/vue-plotly/node_modules/plotly.js/lib/core.js:11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant