Grsmto / simplebar

Custom scrollbars vanilla javascript library with native scroll, done simple, lightweight, easy to use and cross-browser.
http://grsmto.github.io/simplebar/
MIT License
6.02k stars 535 forks source link

Getting type errors after installing simplebar-react library #700

Open oguzgelal opened 2 months ago

oguzgelal commented 2 months ago

Describe the bug After installing the library, I immediately get the following errors:


../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:15 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                   ~~~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:35 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                                       ~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:61 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                                                                 ~~~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:117 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                                                                                                                         ~~~~~~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:146 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                                                                                                                                                      ~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:188 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                                                                                                                                                                                                ~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:213 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                                                                                                                                                                                                                         ~~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:232 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                                                                                                                                                                                                                                            ~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:283 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                                                                                                                                                                                                                                                                                               ~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:307 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                                                                                                                                                                                                                                                                                                                       ~~~~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-model/dist/index.d.ts:1660:328 - error TS1005: ',' expected.

1660 export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };
                                                                                                                                                                                                                                                                                                                                            ~~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-view/dist/index.d.ts:924:15 - error TS1005: ',' expected.

924 export { type DOMEventMap, Decoration, type DecorationAttrs, DecorationSet, type DecorationSource, type DirectEditorProps, type EditorProps, EditorView, type MarkViewConstructor, type NodeView, type NodeViewConstructor };
                  ~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-view/dist/index.d.ts:924:45 - error TS1005: ',' expected.

924 export { type DOMEventMap, Decoration, type DecorationAttrs, DecorationSet, type DecorationSource, type DirectEditorProps, type EditorProps, EditorView, type MarkViewConstructor, type NodeView, type NodeViewConstructor };
                                                ~~~~~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-view/dist/index.d.ts:924:82 - error TS1005: ',' expected.

924 export { type DOMEventMap, Decoration, type DecorationAttrs, DecorationSet, type DecorationSource, type DirectEditorProps, type EditorProps, EditorView, type MarkViewConstructor, type NodeView, type NodeViewConstructor };
                                                                                     ~~~~~~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-view/dist/index.d.ts:924:105 - error TS1005: ',' expected.

924 export { type DOMEventMap, Decoration, type DecorationAttrs, DecorationSet, type DecorationSource, type DirectEditorProps, type EditorProps, EditorView, type MarkViewConstructor, type NodeView, type NodeViewConstructor };
                                                                                                            ~~~~~~~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-view/dist/index.d.ts:924:129 - error TS1005: ',' expected.

924 export { type DOMEventMap, Decoration, type DecorationAttrs, DecorationSet, type DecorationSource, type DirectEditorProps, type EditorProps, EditorView, type MarkViewConstructor, type NodeView, type NodeViewConstructor };
                                                                                                                                    ~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-view/dist/index.d.ts:924:159 - error TS1005: ',' expected.

924 export { type DOMEventMap, Decoration, type DecorationAttrs, DecorationSet, type DecorationSource, type DirectEditorProps, type EditorProps, EditorView, type MarkViewConstructor, type NodeView, type NodeViewConstructor };
                                                                                                                                                                  ~~~~~~~~~~~~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-view/dist/index.d.ts:924:185 - error TS1005: ',' expected.

924 export { type DOMEventMap, Decoration, type DecorationAttrs, DecorationSet, type DecorationSource, type DirectEditorProps, type EditorProps, EditorView, type MarkViewConstructor, type NodeView, type NodeViewConstructor };
                                                                                                                                                                                            ~~~~~~~~

../../node_modules/@tiptap/pm/node_modules/prosemirror-view/dist/index.d.ts:924:200 - error TS1005: ',' expected.

924 export { type DOMEventMap, Decoration, type DecorationAttrs, DecorationSet, type DecorationSource, type DirectEditorProps, type EditorProps, EditorView, type MarkViewConstructor, type NodeView, type NodeViewConstructor };
                                                                                                                                                                                                           ~~~~~~~~~~~~~~~~~~~

../../node_modules/@types/lodash-es/node_modules/@types/lodash/common/object.d.ts:1026:46 - error TS1005: '?' expected.

1026         : K extends `${infer N extends number}` ? T[N]
                                                  ~

../../node_modules/@types/lodash-es/node_modules/@types/lodash/common/object.d.ts:1031:46 - error TS1005: '?' expected.

1031         : K extends `${infer N extends number}` ? T[N]
                                                  ~

../../node_modules/@types/lodash-es/node_modules/@types/lodash/common/object.d.ts:1041:46 - error TS1005: '?' expected.

1041         : K extends `${infer N extends number}`
                                                  ~

[10:57:11 AM] Found 22 errors. Watching for file changes.

To Reproduce Steps to reproduce the behavior: yarn add simplebar-react

Expected behavior No errors

Your environment

Software Version(s)
SimpleBar ^3.2.6
Browser -
npm/Yarn yarn: 1.22.22
Operating System macos 14.4.1