Closed JayAhn2 closed 3 months ago
Hi,
Please provide the following information:
Thank you
18.1.3
Angular: ...
@angular-devkit/architect 0.1801.3 (cli-only) @angular-devkit/core 18.1.3 (cli-only) @angular-devkit/schematics 18.1.3 (cli-only) @schematics/angular 18.1.3 (cli-only)
v5.1.0
angular-mentions are not the dependency I need to install according to the tutorial.
angular-mentions is a peer dependency of the SDK, but it's not listed in the install command because newer versions of npm (10.2.4 included) automatically will install peer dependencies. I've checked, and if angular-mentions is not installed, the error message you'll get is the same.
I noticed that the tutorial doesn't show Yarn install steps (which doesn't install peer dependencies), so if you're using that, please run: yarn add stream-chat-angular stream-chat ngx-float-ui@beta @ngx-translate/core angular-mentions @floating-ui/dom
Let me know if this doesn't solve the issue.
@szuperaz Hi.
Yes indeed this issue comes from peer dependency resolution.
I have .npmrc setting legacy-peer-deps=true
, so I need to install all the dependencies you've mentioned for yarn although I'm using npm.
npm install stream-chat-angular stream-chat ngx-float-ui@beta @ngx-translate/core angular-mentions @floating-ui/dom
With the verbose installations, the issue has solved :)
However, I believe lib should work with the legacy-peer-deps=true setting without imposing excessive dependency addition to users.
Do you have any plan to fix this issue?
Many thanks.
Hi,
I'm trying to follow the tutorial with my nx monorepo project, but the below error occurs on start.
Could you let me know what's the potential problem?
Many thanks.