You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[AI-Suggested] Content update request from UUF signal: Tutorial: Get started with ASP.NET Core SignalR using TypeScript and Webpack | Microsoft Learn #37997
Update the tutorial’s TypeScript/Webpack configuration and client error-handling code to match modern TypeScript defaults and browser-safe practices, removing outdated ES5 targeting guidance and deprecated document.write usage.
Suggested Fixes
Instructions for Copilot: Copilot should only fix suggestions with a checkmark and do not make any updates for unchecked suggestions.
Note
Suggestions are generated by AI and they should be reviewed by human before assigning it to Copilot. Please uncheck the ones you don't want Copilot to work on. Then assign this issue to Agent (GitHub Copilot). When assigning it to Copilot you can enter additional instructions under "Optional Prompt" dialog.
In the sections where the tutorial configures TypeScript/Webpack (the tsconfig.json and any referenced Webpack/ts-loader setup), remove any instruction or sample that sets "target": "es5" and replace it with a current, supported target (and explain the rationale). Also ensure the sample aligns with modern bundlers by adding/adjusting lib and module to avoid common warnings.
Update the tutorial’s tsconfig.json snippet to something like:
ES5 is no longer recommended/commonly supported in modern TS + Webpack setups.
If readers must support legacy browsers, they should use a separate transpilation/polyfill strategy (e.g., Babel + core-js) instead of forcing the tutorial to ES5.
(Adjust the exact target to the doc set’s current baseline, but ensure the tutorial no longer instructs ES5.)
In the “Configure the SignalR TypeScript client” / index.ts portion of the tutorial, replace the deprecated document.write error path with a safe, modern error display/logging pattern and (optionally) a minimal UI element for visibility. Update the code block that currently shows connection.start().catch((err) => document.write(err));.
Activity