EmbeddedChat
EmbeddedChat copied to clipboard
Cant unable to setup locally
Description:
I have done all the steps as mentioned in the getting started guide till spinning up the story book server but it is showing an error as [!] Error: Could not resolve './EmbeddedChatApi.ts' from ../api/dist/index.mjs
The File './EmbeddedChatApi.ts' doesn't even exist in the particular directory
Steps to reproduce:
- Use 16.19.0 node version.
- Now run yarn in the root folder.
- Now change your directory to packages\react.
- Run yarn storybook.
Expected behavior:
The components should be displayed without any error
Actual behavior:
Hey @Chocola04 The build process might not have executed successfully. You can try manually building the api package. Go to packages/api and run yarn build
@abhinavkrin I have run yarn build still facing the same issue. Please help me
Hey @abhinavkrin do we need to run the rocket.Chat server just to view storybook components
@abhinavkrin I'm facing a issue while setting up local environment.
Not able to type or send messages. When I click join, it asks me for email and password. When I enter email and password nothing happens.
Hey @Chocola04 @harisudarsan1 , In packages/auth and in packages/api, look for rollup.config.js, replace the external parameter in both config files in the bundle function to:
id => {
return id[0] !== '.' && !path.isAbsolute(id);
},
})
from
id => !/^[./]/.test(id),
Make sure to import path module in both config files using:
import path from 'path';
After doing these changes, run your build again, it will work:
Refer to this PR for video instruction to build it on windows: https://github.com/RocketChat/EmbeddedChat/pull/406
@ameeetgaikwad , Check if your local instance of rocket chat server has 2FA disabled. There is a bug that login doesn't work as expected when 2FA is enabled. I have raised a issue and PR for the same, you can refer to it: https://github.com/RocketChat/EmbeddedChat/issues/400