Merge branch 'master' into fix/hide-toggle-sidebar-without-channel-list #8533
ci.yml
on: push
Build & Validate
23s
ESLint & Prettier
33s
Test
1m 38s
Deploy Vite Example to Vercel
0s
Annotations
12 errors
|
Build & Validate
Process completed with exit code 1.
|
|
Build & Validate
Cannot find module './useMobileNavigation' or its corresponding type declarations.
|
|
src/components/MediaRecorder/AudioRecorder/__tests__/AudioRecordingPreview.test.tsx:
src/components/AudioPlayback/WithAudioPlayback.tsx#L7
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/AudioPlayback/WithAudioPlayback.tsx:7:1
❯ src/components/AudioPlayback/index.ts:4:1
Caused by: Caused by: Error: Failed to resolve import "./useMobileNavigation" from "src/components/ChannelList/hooks/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /home/runner/work/stream-chat-react/stream-chat-react/src/components/ChannelList/hooks/index.ts:2:14
1 | export * from "./useConnectionRecoveredListener";
2 | export * from "./useMobileNavigation";
| ^
3 | export * from "./usePaginatedChannels";
4 | export * from "./useChannelMembershipState";
❯ TransformPluginContext._formatLog node_modules/vite/dist/node/chunks/config.js:28999:43
❯ TransformPluginContext.error node_modules/vite/dist/node/chunks/config.js:28996:14
❯ normalizeUrl node_modules/vite/dist/node/chunks/config.js:27119:18
❯ node_modules/vite/dist/node/chunks/config.js:27177:32
❯ TransformPluginContext.transform node_modules/vite/dist/node/chunks/config.js:27145:4
❯ EnvironmentPluginContainer.transform node_modules/vite/dist/node/chunks/config.js:28797:14
❯ loadAndTransform node_modules/vite/dist/node/chunks/config.js:22670:26
❯ fetchModule node_modules/vite/dist/node/chunks/config.js:33993:15
|
|
src/components/MediaRecorder/AudioRecorder/__tests__/AudioRecorder.test.tsx:
src/components/AudioPlayback/WithAudioPlayback.tsx#L7
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/AudioPlayback/WithAudioPlayback.tsx:7:1
❯ src/components/Attachment/Audio.tsx:6:1
Caused by: Caused by: Error: Failed to resolve import "./useMobileNavigation" from "src/components/ChannelList/hooks/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /home/runner/work/stream-chat-react/stream-chat-react/src/components/ChannelList/hooks/index.ts:2:14
1 | export * from "./useConnectionRecoveredListener";
2 | export * from "./useMobileNavigation";
| ^
3 | export * from "./usePaginatedChannels";
4 | export * from "./useChannelMembershipState";
❯ TransformPluginContext._formatLog node_modules/vite/dist/node/chunks/config.js:28999:43
❯ TransformPluginContext.error node_modules/vite/dist/node/chunks/config.js:28996:14
❯ normalizeUrl node_modules/vite/dist/node/chunks/config.js:27119:18
❯ node_modules/vite/dist/node/chunks/config.js:27177:32
❯ TransformPluginContext.transform node_modules/vite/dist/node/chunks/config.js:27145:4
❯ EnvironmentPluginContainer.transform node_modules/vite/dist/node/chunks/config.js:28797:14
❯ loadAndTransform node_modules/vite/dist/node/chunks/config.js:22670:26
❯ fetchModule node_modules/vite/dist/node/chunks/config.js:33993:15
|
|
src/components/MessageList/__tests__/VirtualizedMessageList.test.tsx:
src/components/Notifications/hooks/useNotificationTarget.ts#L3
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/Notifications/hooks/useNotificationTarget.ts:3:1
❯ src/components/Notifications/hooks/index.ts:2:1
Caused by: Error: Failed to resolve import "./useMobileNavigation" from "src/components/ChannelList/hooks/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /home/runner/work/stream-chat-react/stream-chat-react/src/components/ChannelList/hooks/index.ts:2:14
1 | export * from "./useConnectionRecoveredListener";
2 | export * from "./useMobileNavigation";
| ^
3 | export * from "./usePaginatedChannels";
4 | export * from "./useChannelMembershipState";
❯ TransformPluginContext._formatLog node_modules/vite/dist/node/chunks/config.js:28999:43
❯ TransformPluginContext.error node_modules/vite/dist/node/chunks/config.js:28996:14
❯ normalizeUrl node_modules/vite/dist/node/chunks/config.js:27119:18
❯ node_modules/vite/dist/node/chunks/config.js:27177:32
❯ TransformPluginContext.transform node_modules/vite/dist/node/chunks/config.js:27145:4
❯ EnvironmentPluginContainer.transform node_modules/vite/dist/node/chunks/config.js:28797:14
❯ loadAndTransform node_modules/vite/dist/node/chunks/config.js:22670:26
❯ fetchModule node_modules/vite/dist/node/chunks/config.js:33993:15
|
|
src/components/MessageList/__tests__/MessageList.test.tsx:
src/components/Notifications/hooks/useNotificationTarget.ts#L3
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/Notifications/hooks/useNotificationTarget.ts:3:1
❯ src/components/Notifications/hooks/index.ts:2:1
Caused by: Error: Failed to resolve import "./useMobileNavigation" from "src/components/ChannelList/hooks/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /home/runner/work/stream-chat-react/stream-chat-react/src/components/ChannelList/hooks/index.ts:2:14
1 | export * from "./useConnectionRecoveredListener";
2 | export * from "./useMobileNavigation";
| ^
3 | export * from "./usePaginatedChannels";
4 | export * from "./useChannelMembershipState";
❯ TransformPluginContext._formatLog node_modules/vite/dist/node/chunks/config.js:28999:43
❯ TransformPluginContext.error node_modules/vite/dist/node/chunks/config.js:28996:14
❯ normalizeUrl node_modules/vite/dist/node/chunks/config.js:27119:18
❯ node_modules/vite/dist/node/chunks/config.js:27177:32
❯ TransformPluginContext.transform node_modules/vite/dist/node/chunks/config.js:27145:4
❯ EnvironmentPluginContainer.transform node_modules/vite/dist/node/chunks/config.js:28797:14
❯ loadAndTransform node_modules/vite/dist/node/chunks/config.js:22670:26
❯ fetchModule node_modules/vite/dist/node/chunks/config.js:33993:15
|
|
src/components/MessageComposer/__tests__/ThreadMessageInput.test.tsx:
src/components/Notifications/hooks/useNotificationTarget.ts#L3
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/Notifications/hooks/useNotificationTarget.ts:3:1
❯ src/components/Notifications/hooks/index.ts:2:1
Caused by: Error: Failed to resolve import "./useMobileNavigation" from "src/components/ChannelList/hooks/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /home/runner/work/stream-chat-react/stream-chat-react/src/components/ChannelList/hooks/index.ts:2:14
1 | export * from "./useConnectionRecoveredListener";
2 | export * from "./useMobileNavigation";
| ^
3 | export * from "./usePaginatedChannels";
4 | export * from "./useChannelMembershipState";
❯ TransformPluginContext._formatLog node_modules/vite/dist/node/chunks/config.js:28999:43
❯ TransformPluginContext.error node_modules/vite/dist/node/chunks/config.js:28996:14
❯ normalizeUrl node_modules/vite/dist/node/chunks/config.js:27119:18
❯ node_modules/vite/dist/node/chunks/config.js:27177:32
❯ TransformPluginContext.transform node_modules/vite/dist/node/chunks/config.js:27145:4
❯ EnvironmentPluginContainer.transform node_modules/vite/dist/node/chunks/config.js:28797:14
❯ loadAndTransform node_modules/vite/dist/node/chunks/config.js:22670:26
❯ fetchModule node_modules/vite/dist/node/chunks/config.js:33993:15
|
|
src/components/Message/__tests__/QuotedMessage.test.tsx:
src/components/Notifications/hooks/useNotificationTarget.ts#L3
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/Notifications/hooks/useNotificationTarget.ts:3:1
❯ src/components/Notifications/hooks/index.ts:2:1
Caused by: Error: Failed to resolve import "./useMobileNavigation" from "src/components/ChannelList/hooks/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /home/runner/work/stream-chat-react/stream-chat-react/src/components/ChannelList/hooks/index.ts:2:14
1 | export * from "./useConnectionRecoveredListener";
2 | export * from "./useMobileNavigation";
| ^
3 | export * from "./usePaginatedChannels";
4 | export * from "./useChannelMembershipState";
❯ TransformPluginContext._formatLog node_modules/vite/dist/node/chunks/config.js:28999:43
❯ TransformPluginContext.error node_modules/vite/dist/node/chunks/config.js:28996:14
❯ normalizeUrl node_modules/vite/dist/node/chunks/config.js:27119:18
❯ node_modules/vite/dist/node/chunks/config.js:27177:32
❯ TransformPluginContext.transform node_modules/vite/dist/node/chunks/config.js:27145:4
❯ EnvironmentPluginContainer.transform node_modules/vite/dist/node/chunks/config.js:28797:14
❯ loadAndTransform node_modules/vite/dist/node/chunks/config.js:22670:26
❯ fetchModule node_modules/vite/dist/node/chunks/config.js:33993:15
|
|
src/components/Message/__tests__/MessageUI.test.tsx:
src/components/Notifications/hooks/useNotificationTarget.ts#L3
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/Notifications/hooks/useNotificationTarget.ts:3:1
❯ src/components/Notifications/hooks/index.ts:2:1
Caused by: Error: Failed to resolve import "./useMobileNavigation" from "src/components/ChannelList/hooks/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /home/runner/work/stream-chat-react/stream-chat-react/src/components/ChannelList/hooks/index.ts:2:14
1 | export * from "./useConnectionRecoveredListener";
2 | export * from "./useMobileNavigation";
| ^
3 | export * from "./usePaginatedChannels";
4 | export * from "./useChannelMembershipState";
❯ TransformPluginContext._formatLog node_modules/vite/dist/node/chunks/config.js:28999:43
❯ TransformPluginContext.error node_modules/vite/dist/node/chunks/config.js:28996:14
❯ normalizeUrl node_modules/vite/dist/node/chunks/config.js:27119:18
❯ node_modules/vite/dist/node/chunks/config.js:27177:32
❯ TransformPluginContext.transform node_modules/vite/dist/node/chunks/config.js:27145:4
❯ EnvironmentPluginContainer.transform node_modules/vite/dist/node/chunks/config.js:28797:14
❯ loadAndTransform node_modules/vite/dist/node/chunks/config.js:22670:26
❯ fetchModule node_modules/vite/dist/node/chunks/config.js:33993:15
|
|
src/components/Message/__tests__/MessageText.test.tsx:
src/components/Notifications/hooks/useNotificationTarget.ts#L3
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/Notifications/hooks/useNotificationTarget.ts:3:1
❯ src/components/Notifications/hooks/index.ts:2:1
Caused by: Error: Failed to resolve import "./useMobileNavigation" from "src/components/ChannelList/hooks/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /home/runner/work/stream-chat-react/stream-chat-react/src/components/ChannelList/hooks/index.ts:2:14
1 | export * from "./useConnectionRecoveredListener";
2 | export * from "./useMobileNavigation";
| ^
3 | export * from "./usePaginatedChannels";
4 | export * from "./useChannelMembershipState";
❯ TransformPluginContext._formatLog node_modules/vite/dist/node/chunks/config.js:28999:43
❯ TransformPluginContext.error node_modules/vite/dist/node/chunks/config.js:28996:14
❯ normalizeUrl node_modules/vite/dist/node/chunks/config.js:27119:18
❯ node_modules/vite/dist/node/chunks/config.js:27177:32
❯ TransformPluginContext.transform node_modules/vite/dist/node/chunks/config.js:27145:4
❯ EnvironmentPluginContainer.transform node_modules/vite/dist/node/chunks/config.js:28797:14
❯ loadAndTransform node_modules/vite/dist/node/chunks/config.js:22670:26
❯ fetchModule node_modules/vite/dist/node/chunks/config.js:33993:15
|
|
src/components/Message/__tests__/Message.test.tsx:
src/components/Notifications/hooks/useNotificationTarget.ts#L3
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/Notifications/hooks/useNotificationTarget.ts:3:1
❯ src/components/Notifications/hooks/index.ts:2:1
Caused by: Caused by: Error: Failed to resolve import "./useMobileNavigation" from "src/components/ChannelList/hooks/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /home/runner/work/stream-chat-react/stream-chat-react/src/components/ChannelList/hooks/index.ts:2:14
1 | export * from "./useConnectionRecoveredListener";
2 | export * from "./useMobileNavigation";
| ^
3 | export * from "./usePaginatedChannels";
4 | export * from "./useChannelMembershipState";
❯ TransformPluginContext._formatLog node_modules/vite/dist/node/chunks/config.js:28999:43
❯ TransformPluginContext.error node_modules/vite/dist/node/chunks/config.js:28996:14
❯ normalizeUrl node_modules/vite/dist/node/chunks/config.js:27119:18
❯ node_modules/vite/dist/node/chunks/config.js:27177:32
❯ TransformPluginContext.transform node_modules/vite/dist/node/chunks/config.js:27145:4
❯ EnvironmentPluginContainer.transform node_modules/vite/dist/node/chunks/config.js:28797:14
❯ loadAndTransform node_modules/vite/dist/node/chunks/config.js:22670:26
❯ fetchModule node_modules/vite/dist/node/chunks/config.js:33993:15
|
|
src/components/AudioPlayback/__tests__/WithAudioPlayback.test.tsx:
src/components/AudioPlayback/WithAudioPlayback.tsx#L7
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/AudioPlayback/WithAudioPlayback.tsx:7:1
❯ src/components/AudioPlayback/__tests__/WithAudioPlayback.test.tsx:5:1
Caused by: Caused by: Error: Failed to resolve import "./useMobileNavigation" from "src/components/ChannelList/hooks/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /home/runner/work/stream-chat-react/stream-chat-react/src/components/ChannelList/hooks/index.ts:2:14
1 | export * from "./useConnectionRecoveredListener";
2 | export * from "./useMobileNavigation";
| ^
3 | export * from "./usePaginatedChannels";
4 | export * from "./useChannelMembershipState";
❯ TransformPluginContext._formatLog node_modules/vite/dist/node/chunks/config.js:28999:43
❯ TransformPluginContext.error node_modules/vite/dist/node/chunks/config.js:28996:14
❯ normalizeUrl node_modules/vite/dist/node/chunks/config.js:27119:18
❯ node_modules/vite/dist/node/chunks/config.js:27177:32
❯ TransformPluginContext.transform node_modules/vite/dist/node/chunks/config.js:27145:4
❯ EnvironmentPluginContainer.transform node_modules/vite/dist/node/chunks/config.js:28797:14
❯ loadAndTransform node_modules/vite/dist/node/chunks/config.js:22670:26
❯ fetchModule node_modules/vite/dist/node/chunks/config.js:33993:15
|