We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using next js version 13.4.19, matrix-js-sdk version ^34.13.0, While running npm run build
next
matrix-js-sdk
npm run build
Getting following error: Error: Multiple matrix-js-sdk entrypoints detected!
Tried to solve as per this #3446 but not worked, Can anyone please guide correct way to solve this.
// MatrixSDK.js import * as MatrixJsSDK from "matrix-js-sdk";
const createClient = MatrixJsSDK.createClient; const MatrixEvent = MatrixJsSDK.MatrixEvent; const RoomEvent = MatrixJsSDK.RoomEvent; const EventTimeline = MatrixJsSDK.EventTimeline; const EventType = MatrixJsSDK.EventType; const MsgType = MatrixJsSDK.MsgType; const RelationType = MatrixJsSDK.RelationType; const MatrixEventEvent = MatrixJsSDK.MatrixEventEvent; const TimelineWindow = MatrixJsSDK.TimelineWindow; const RelationsEvent = MatrixJsSDK.RelationsEvent; const SearchOrderBy = MatrixJsSDK.SearchOrderBy; const RoomStateEvent = MatrixJsSDK.RoomStateEvent;
export { createClient, MatrixEvent, RoomEvent, EventTimeline, EventType, MsgType, RelationType, MatrixEventEvent, TimelineWindow, RelationsEvent, SearchOrderBy, RoomStateEvent, };
The text was updated successfully, but these errors were encountered:
It sounds like you are not importing the library consistently.
Please provide reproduction steps.
Sorry, something went wrong.
It seems like having problem when we import it on SSR (server side render components).
No branches or pull requests
Using
next
js version 13.4.19,matrix-js-sdk
version ^34.13.0, While runningnpm run build
Getting following error:
Error: Multiple matrix-js-sdk entrypoints detected!
Tried to solve as per this #3446 but not worked, Can anyone please guide correct way to solve this.
// MatrixSDK.js
import * as MatrixJsSDK from "matrix-js-sdk";
const createClient = MatrixJsSDK.createClient;
const MatrixEvent = MatrixJsSDK.MatrixEvent;
const RoomEvent = MatrixJsSDK.RoomEvent;
const EventTimeline = MatrixJsSDK.EventTimeline;
const EventType = MatrixJsSDK.EventType;
const MsgType = MatrixJsSDK.MsgType;
const RelationType = MatrixJsSDK.RelationType;
const MatrixEventEvent = MatrixJsSDK.MatrixEventEvent;
const TimelineWindow = MatrixJsSDK.TimelineWindow;
const RelationsEvent = MatrixJsSDK.RelationsEvent;
const SearchOrderBy = MatrixJsSDK.SearchOrderBy;
const RoomStateEvent = MatrixJsSDK.RoomStateEvent;
export {
createClient,
MatrixEvent,
RoomEvent,
EventTimeline,
EventType,
MsgType,
RelationType,
MatrixEventEvent,
TimelineWindow,
RelationsEvent,
SearchOrderBy,
RoomStateEvent,
};
The text was updated successfully, but these errors were encountered: