quickest-silver
quickest-silverā€¢8mo ago

why this errors

why this errors
src/App.tsx:1:10 - error TS2305: Module '"@refinedev/core"' has no exported member 'Authenticated'.

1 import { Authenticated, GitHubBanner, Refine } from "@refinedev/core";
~~~~~~~~~~~~~

src/App.tsx:1:25 - error TS2305: Module '"@refinedev/core"' has no exported member 'GitHubBanner'.

1 import { Authenticated, GitHubBanner, Refine } from "@refinedev/core";
~~~~~~~~~~~~

src/App.tsx:1:39 - error TS2305: Module '"@refinedev/core"' has no exported member 'Refine'.

1 import { Authenticated, GitHubBanner, Refine } from "@refinedev/core";
~~~~~~

src/App.tsx:6:3 - error TS2305: Module '"@refinedev/antd"' has no exported member 'ErrorComponent'.

6 ErrorComponent,
~~~~~~~~~~~~~~

src/App.tsx:7:3 - error TS2305: Module '"@refinedev/antd"' has no exported member 'ThemedLayoutV2'.

7 ThemedLayoutV2,
~~~~~~~~~~~~~~

src/App.tsx:8:3 - error TS2305: Module '"@refinedev/antd"' has no exported member 'ThemedSiderV2'.

8 ThemedSiderV2,
~~~~~~~~~~~~~

src/App.tsx:9:3 - error TS2305: Module '"@refinedev/antd"' has no exported member 'useNotificationProvider'.

9 useNotificationProvider,
~~~~~~~~~~~~~~~~~~~~~~~

src/App.tsx:92:35 - error TS7006: Parameter 'props' implicitly has an 'any' type.

92 Sider={(props) => <ThemedSiderV2 {...props} fixed />}
~~~~~

src/authProvider.ts:6:19 - error TS7031: Binding element 'username' implicitly has an 'any' type.

6 login: async ({ username, email, password }) => {
~~~~~~~~

src/authProvider.ts:6:29 - error TS7031: Binding element 'email' implicitly has an 'any' type.

6 login: async ({ username, email, password }) => {
src/App.tsx:1:10 - error TS2305: Module '"@refinedev/core"' has no exported member 'Authenticated'.

1 import { Authenticated, GitHubBanner, Refine } from "@refinedev/core";
~~~~~~~~~~~~~

src/App.tsx:1:25 - error TS2305: Module '"@refinedev/core"' has no exported member 'GitHubBanner'.

1 import { Authenticated, GitHubBanner, Refine } from "@refinedev/core";
~~~~~~~~~~~~

src/App.tsx:1:39 - error TS2305: Module '"@refinedev/core"' has no exported member 'Refine'.

1 import { Authenticated, GitHubBanner, Refine } from "@refinedev/core";
~~~~~~

src/App.tsx:6:3 - error TS2305: Module '"@refinedev/antd"' has no exported member 'ErrorComponent'.

6 ErrorComponent,
~~~~~~~~~~~~~~

src/App.tsx:7:3 - error TS2305: Module '"@refinedev/antd"' has no exported member 'ThemedLayoutV2'.

7 ThemedLayoutV2,
~~~~~~~~~~~~~~

src/App.tsx:8:3 - error TS2305: Module '"@refinedev/antd"' has no exported member 'ThemedSiderV2'.

8 ThemedSiderV2,
~~~~~~~~~~~~~

src/App.tsx:9:3 - error TS2305: Module '"@refinedev/antd"' has no exported member 'useNotificationProvider'.

9 useNotificationProvider,
~~~~~~~~~~~~~~~~~~~~~~~

src/App.tsx:92:35 - error TS7006: Parameter 'props' implicitly has an 'any' type.

92 Sider={(props) => <ThemedSiderV2 {...props} fixed />}
~~~~~

src/authProvider.ts:6:19 - error TS7031: Binding element 'username' implicitly has an 'any' type.

6 login: async ({ username, email, password }) => {
~~~~~~~~

src/authProvider.ts:6:29 - error TS7031: Binding element 'email' implicitly has an 'any' type.

6 login: async ({ username, email, password }) => {
6 Replies
correct-apricot
correct-apricotā€¢8mo ago
Hey @_mercury, sorry for the issue. Looks like the latest release has some issues with typescript v4. Upgrading to typescript 5 will resolve this issue for now but we're working on a fix for older versions šŸš€
genetic-orange
genetic-orangeā€¢8mo ago
ty for care tsc -v Version 5.4.5 i have ts 5.4
correct-apricot
correct-apricotā€¢8mo ago
Is this the version of the globally installed one or in your node_modules?
genetic-orange
genetic-orangeā€¢8mo ago
global
correct-apricot
correct-apricotā€¢8mo ago
Try upgrading the one in the project
genetic-orange
genetic-orangeā€¢8mo ago
yes works thx how to make this resolved āœ