Coding⏱️ 2 min read📅 2026-06-03

How to Fix: node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected error after installation of Angular 6

TS1005 error after Angular 6 installation.

Quick Answer: Try reinstalling the rxjs package or updating your TypeScript configuration to resolve the issue.

To resolve the error 'TS1005: ';' expected' after installing Angular 6, it's essential to understand that this error is typically caused by incorrect syntax in your project's TypeScript configuration file.

⚠️ Common Causes

  • Incorrectly formatted imports or exports in the project's main module.

🚀 How to Resolve This Issue

Method 1: Check Project Configuration Files

  1. Step 1: Review the project's main module (app.module.ts) and other configuration files to ensure that all imports and exports are correctly formatted.

Method 2: Run npm Run

  1. Step 1: Open your terminal and run the command `npm run build` to recompile the project's TypeScript files.

💡 Conclusion

By following these steps, you should be able to resolve the 'TS1005: ';' expected' error and successfully install Angular 6 in your project.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions