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

Request for documentation on integrating the React Meeting Demo into an existing app #415

Open
Mohammed-Shoaib opened this issue Mar 22, 2024 · 0 comments

Comments

@Mohammed-Shoaib
Copy link

What demo do you have issue with?

React Meeting Demo

How can the documentation be improved to help your use case?

I have an existing React app and I copied the folder apps/meeting/src into my react app. I am now trying to use the individual components in the folder apps/meeting/src/components in the react app but it fails to bundle when I bundle the whole app (existing app + the meeting app).

The bundling fails with errors such as below:

[ERROR] Could not resolve "fs"

    node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js:4:21:
      4 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node. Are you trying to bundle
  for node? You can use "--platform=node" to do that, which will remove this error.

As suggested, the bundling works when specifying the --platform=node flag. In essence, when trying to bundle the app for the browser, the bundling process fails. But when trying to bundle the app for node, the bundling process succeeds. I have not been able to get around this issue easily.

Would you be able to provide documentation on developers can integrate the React meeting demo app into their existing React app? This would be really useful!

What documentation have you looked at so far?

I went through the documentation on running the React meeting demo app. I also looked at external documentation on using esbuild and webpack. These haven't been super-useful as my issue is with integrating the React meeting demo app into the existing React app.

Thank you so much for your time and help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant