microsoft / microsoft/tslib

main.js:1 Uncaught Error: Cannot find module 'tslib'

Open
#156 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

**While running angular 12 version getting the below runtime error , in and around googled not getting correct solution

Having typescript "typescript": "4.2", "tslib": "^2.3.1"**

========= below are errors are runtime error unable to run ====================
main.js:1 Uncaught Error: Cannot find module 'tslib'
at Y (main.js:1)
at main.js:1
at main.js:1
at Object.66458 (main.js:1)
at r (runtime.js:1)
at Object.50124 (main.js:1)
at r (runtime.js:1)
at Y (main.js:1)
at main.js:1
at t (runtime.js:1)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Angular 12 runtime failure and inspect the generated main.js and runtime.js entry points alongside the stated TypeScript and tslib versions. Determine why the bundled application cannot resolve tslib; done means the application starts without the reported module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.