react-tabs-scrollable icon indicating copy to clipboard operation
react-tabs-scrollable copied to clipboard

SyntaxError: Named export 'Tabs' not found.

Open deflexable opened this issue 1 year ago • 2 comments

import { Tabs, Tab } from "react-tabs-scrollable";

is bring an error ``SyntaxError: Named export 'Tabs' not found. The requested module 'react-tabs-scrollable' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using:

import pkg from 'react-tabs-scrollable'; const { Tabs } = pkg;``

but after changing it to

 import pkg from "react-tabs-scrollable";
const { Tabs, Tab } = pkg;

it bring another error ERROR: No matching export in "node_modules/react-tabs-scrollable/dist/react-tabs-scrollable.es.js" for import "default"

  • package version is "react-tabs-scrollable": "^2.0.5-alpha"

deflexable avatar Aug 08 '23 12:08 deflexable