Skip to content

Conversation

@mjy9088
Copy link
Contributor

@mjy9088 mjy9088 commented Jul 29, 2025

This patch fixes a build-breaking issue. The current code resolves to .../out/out/..., which looks like an unintentional typo. Please review.

@jsanz1209
Copy link

This issue is related to this error, right?

./node_modules/applicationinsights/out/src/logs/autoCollectLogs.js:16:6-73 - Error: Module not found: Error: Can't resolve '../../out/src/logs/diagnostic-channel/console.sub' in '/ng-app/node_modules/applicationinsights/out/src/logs'

Please, I would need that be resolved as soon as possible since I have to compile a new version in production and this error is locking it.

Thanks in advance.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a build-breaking path resolution issue in the AutoCollectLogs class by correcting relative paths from ../../out/src/logs/ to ../../../out/src/logs/ to properly resolve module paths in fallback require statements.

  • Updates fallback require paths to prevent double "out" directory resolution
  • Fixes path resolution in both enable() and dispose() methods

@JacksonWeber JacksonWeber changed the title fix typo Fix diagnostic-channel Console Import Jul 29, 2025
@JacksonWeber JacksonWeber merged commit d53fc96 into microsoft:main Jul 29, 2025
16 checks passed
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

Successfully merging this pull request may close these issues.

3 participants