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

few SSR fixes #35339

Closed
wants to merge 7 commits into from
Closed

few SSR fixes #35339

wants to merge 7 commits into from

Conversation

xvaara
Copy link

@xvaara xvaara commented Nov 8, 2021

No description provided.

@xvaara xvaara requested a review from a team as a code owner November 8, 2021 17:42
@xvaara
Copy link
Author

xvaara commented Nov 8, 2021

addEventListener is still a problem. @GeoSot do you want to solve this in a different way than in my previous pull request? You never answered there.

Screenshot 2021-11-08 at 20 29 11

TypeError: element.addEventListener is not a function
    at addHandler (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:509:13)
    at Object.on (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:542:7)
    at enableDismissTrigger (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:781:18)
    at /data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:870:3
    at /data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:7:83
    at Object.<anonymous> (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:10:3)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) TypeError: element.addEventListener is not a function
    at addHandler (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:509:13)
    at Object.on (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:542:7)
    at enableDismissTrigger (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:781:18)
    at /data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:870:3
    at /data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:7:83
    at Object.<anonymous> (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:10:3)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
8:26:14 PM [vite] Internal server error: element.addEventListener is not a function
      at addHandler (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:509:13)
      at Object.on (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:542:7)
      at enableDismissTrigger (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:781:18)
      at /data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:870:3
      at /data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:7:83
      at Object.<anonymous> (/data/github/bootstrap-vue-3/node_modules/bootstrap/dist/js/bootstrap.js:10:3)
      at Module._compile (node:internal/modules/cjs/loader:1101:14)
      at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
      at Module.load (node:internal/modules/cjs/loader:981:32)
      at Function.Module._load (node:internal/modules/cjs/loader:822:12)

@xvaara
Copy link
Author

xvaara commented Nov 9, 2021

The function that causes that error is enableDismissTrigger since it attaches handler to document and it's an empty object in node. So it passes the other conditions.

@mdo
Copy link
Member

mdo commented Dec 29, 2022

Closing as stale. Feel free to reopen if there’s something more to do here.

@mdo mdo closed this Dec 29, 2022
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

Successfully merging this pull request may close these issues.

5 participants