react-scroll-sync icon indicating copy to clipboard operation
react-scroll-sync copied to clipboard

Element is not defined

Open dgastudio opened this issue 2 years ago • 7 comments

nextjs : 13.5.6 lib: ^0.11.0

ReferenceError: Element is not defined at Object. (/Users//v3/frontend_next/node_modules/react-scroll-sync/dist/index.js:854:71) at webpack_require (/Users//v3/frontend_next/node_modules/react-scroll-sync/dist/index.js:30:30) at Object. (/Users//v3/frontend_next/node_modules/react-scroll-sync/dist/index.js:883:23) at webpack_require (/Users//v3/frontend_next/node_modules/react-scroll-sync/dist/index.js:30:30) at /Users//v3/frontend_next/node_modules/react-scroll-sync/dist/index.js:76:18 at /Users//v3/frontend_next/node_modules/react-scroll-sync/dist/index.js:79:10 at webpackUniversalModuleDefinition (/Users//v3/frontend_next/node_modules/react-scroll-sync/dist/index.js:3:20) at Object. (/Users//v3/frontend_next/node_modules/react-scroll-sync/dist/index.js:10:3) at Module._compile (node:internal/modules/cjs/loader:1233:14) at Module._extensions..js (node:internal/modules/cjs/loader:1287:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Module.require (node:internal/modules/cjs/loader:1115:19) at mod.require (/Users/****/v3/frontend_next/node_modules/next/dist/server/require-hook.js:64:28) at require (node:internal/modules/helpers:119:18) {

i can't inderstand the reason of this issue. it was working fine previously

dgastudio avatar Oct 27 '23 09:10 dgastudio

I'm not offering free debugging session, unfortunately. If you're still interested in my help, I can send you a calendly link to pick the time for the paid session.

okonet avatar Oct 27 '23 10:10 okonet

I have the same issue after updating the packages

dev-m-work avatar Oct 27 '23 11:10 dev-m-work

I'm not offering free debugging session, unfortunately. If you're still interested in my help, I can send you a calendly link to pick the time for the paid session.

Please send it so we can debug your package

dev-m-work avatar Oct 27 '23 12:10 dev-m-work

The same error happened to me after upgrading from 0.11.0 to 0.11.11. Worked after I reverted to 0.11.0 again.

Next.js: 14.0.0.

This PR must be the culprit: https://github.com/okonet/react-scroll-sync/pull/90

DusanStojanovic-gowago avatar Oct 27 '23 18:10 DusanStojanovic-gowago

Feel free to investigate and create a PR.

okonet avatar Oct 27 '23 18:10 okonet

I have same issuse, the package version is 0.11.1, when i use this version in ssr framework, I will get this problem

AmelloAster avatar Nov 01 '23 06:11 AmelloAster

Fixed in 0.11.2

DRoet avatar Nov 01 '23 20:11 DRoet