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

Tab & Tabs Not Working: node2.addEventListener is not a function #6697

Open
ynwd opened this issue Sep 29, 2023 · 2 comments
Open

Tab & Tabs Not Working: node2.addEventListener is not a function #6697

ynwd opened this issue Sep 29, 2023 · 2 comments

Comments

@ynwd
Copy link

ynwd commented Sep 29, 2023

SSR App. Build with ESBUILD and Deno.

import_map.json

{
  "imports": {
    "react/": "https://esm.sh/v132/react@18.2.0/",
    "react-dom": "https://esm.sh/v132/react-dom@18.2.0",
    "react-dom/": "https://esm.sh/v132/react-dom@18.2.0/",
    "prismjs/": "https://esm.sh/v132/prismjs@1.29.0/",
    "react": "https://esm.sh/v132/react@18.2.0?dev",
    "react-bootstrap-button": "https://esm.sh/v132/react-bootstrap@2.9.0/Button?dev",
    "react-bootstrap-modal": "https://esm.sh/v132/react-bootstrap@2.9.0/Modal?dev",
    "react-bootstrap-tabs": "https://esm.sh/v132/react-bootstrap@2.9.0/Tabs?dev",
    "react-bootstrap-tab": "https://esm.sh/v132/react-bootstrap@2.9.0/Tab?dev"
  }
}
import React from "react";
import Tabs from "react-bootstrap-tabs";
import Tab from "react-bootstrap-tab";

export function HashView() {
  return (
    <Tabs
      defaultActiveKey="profile"
      id="uncontrolled-tab-example"
      className="mb-3"
    >
      <Tab eventKey="home" title="Home">
        Tab content for Home
      </Tab>
      <Tab eventKey="profile" title="Profile">
        Tab content for Profile
      </Tab>
    </Tabs>
  );
}
Uncaught TypeError: node2.addEventListener is not a function
    at addEventListener (uuid.js:152:14292)
    at Object.invokeGuardedCallbackImpl (uuid.js:31:43159)
    at invokeGuardedCallback (uuid.js:31:44603)
    at invokeGuardedCallbackAndCatchFirstError (uuid.js:31:44736)
    at executeDispatch (uuid.js:31:119141)
    at processDispatchQueueItemsInOrder (uuid.js:31:120017)
    at processDispatchQueue (uuid.js:31:120354)
    at dispatchEventsForPlugins (uuid.js:31:120713)
    at uuid.js:31:124749
    at batchedUpdates$1 (uuid.js:111:48541)
Screenshot 2023-09-29 at 09 55 46
@ynwd ynwd changed the title Tab & Tabs Not Working: node2.addEventListener Tab & Tabs Not Working: node2.addEventListener is not a function Sep 29, 2023
@bigkho

This comment was marked as off-topic.

@ynwd
Copy link
Author

ynwd commented Oct 3, 2023

please not that : react-bootstrap-tab ---> https://esm.sh/v132/react-bootstrap@2.9.0/Tab?de

"react-bootstrap-tab": "https://esm.sh/v132/react-bootstrap@2.9.0/Tab?dev"

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

2 participants