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

Can't build TS example #489

Open
smydolf opened this issue Jun 13, 2024 · 0 comments
Open

Can't build TS example #489

smydolf opened this issue Jun 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@smydolf
Copy link

smydolf commented Jun 13, 2024

Describe the bug
Hi all. I went thought the setup for webpack 5 but I cannot build and run the project. Could you please have a look on that?
Cannot build TS example from this tutorial:
https://github.com/microsoft/omnichannel-chat-widget/blob/main/docs/BuildingUsingWebpack5.md

I also had the issue with react-native but solved with externals: { "react-native": true } in webpack.config.ts

Can't resolve 'crypto' in '/Users/dax/Repos/chat-sample/node_modules/@microsoft/ocsdk/lib'
(not sure If I should do what is proposed by webpack (see the screenshot below)).

To Reproduce
Steps to reproduce the behavior:
Go step by step from link attached above.

Screenshots
image

Desktop (please complete the following information):

  • OS: Mac OS
@smydolf smydolf added the bug Something isn't working label Jun 13, 2024
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

1 participant