diff --git a/src/dom-manipulation.js b/src/dom-manipulation.js
index <HASH>..<HASH> 100644
--- a/src/dom-manipulation.js
+++ b/src/dom-manipulation.js
@@ -183,8 +183,10 @@ export const updateHeightPlaceholder = ({
 };
 
 export const getNativeNode = (element) => {
+  var isBrowser = typeof HTMLElement !== 'undefined';
+
   // `element` may already be a native node.
-  if (element instanceof HTMLElement) {
+  if (isBrowser && element instanceof HTMLElement) {
     return element;
   }
Prevent error with HTMLElement when not redering from browser