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.

SVGElement is not defined when in Node Env using server side rendering

See original GitHub issue

When using SSR SVGElement is not declared on the env because it’s running on a NodeJS environnement DocumentFragment may be affected too.

It’s affected by this line in src/components/Tippy.ts: https://github.com/KABBOUCHI/vue-tippy/blob/c2b7c1012ae55b9bd1db9077b9ba67b0e89266e0/src/components/Tippy.ts#L37

Can it be avoided to be able to declare vue-tippy instance with SSR and hydrate after on client side ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KABBOUCHIcommented, Mar 12, 2022

I temporarily removed the type, it should work now, I’ll investigate more later.

0reactions
stale[bot]commented, May 25, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

require is not defined in webpack, node environment
I am using Webpack (v4) to bundle my Javascript code. ... the bundled code via server-side rendering using a library like MiniRacer (uses...
Read more >
Using Rickshaw/D3 in Node.js,for server side, raw svg ...
Coding example for the question Using Rickshaw/D3 in Node.js,for server side, ... var Rickshaw = require('rickshaw'), jsdom = require('jsdom'); jsdom.env({ ...
Read more >
d3actor - npm Package Health Analysis - Snyk
It allows to render any svg element. It recognises two props ( tagName and text ). Any other prop passed to it would...
Read more >
Joint API - JointJS
If the attribute is not bound to a specific SVGElement with ref attribute, ... If set to true , the SVGTextElement with empty...
Read more >
Safari Technology Preview Release Notes - Apple Developer
currentScale to only set the page zoom for a standalone SVG (254787@main) ... Fixed website policies not being respected when doing COOP-based process...
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