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.

Assessment

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

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.

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)

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

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.

More from microsoft/tslib

All issues in microsoft/tslib

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.