Skip to content
New issue

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

Cant unable to setup locally #299

Open
Chocola04 opened this issue Nov 7, 2023 · 6 comments
Open

Cant unable to setup locally #299

Chocola04 opened this issue Nov 7, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Chocola04
Copy link

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:

  1. Use 16.19.0 node version.
  2. Now run yarn in the root folder.
  3. Now change your directory to packages\react.
  4. Run yarn storybook.

Expected behavior:

The components should be displayed without any error

Actual behavior:

image

@Chocola04 Chocola04 added the bug Something isn't working label Nov 7, 2023
@abhinavkrin
Copy link
Member

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

@Chocola04
Copy link
Author

Chocola04 commented Nov 7, 2023

@abhinavkrin I have run yarn build still facing the same issue. Please help me

@harisudarsan1
Copy link

Hey @abhinavkrin do we need to run the rocket.Chat server just to view storybook components

@ameeetgaikwad
Copy link

@abhinavkrin I'm facing a issue while setting up local environment.

image

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.

@Spiral-Memory
Copy link
Contributor

Spiral-Memory commented Jan 18, 2024

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: #406

@Spiral-Memory
Copy link
Contributor

@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: #400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants