Skip to content

tslib not working for JSPM #12887

@mhegazy

Description

@mhegazy

Reported in #12724 (comment)

I am using JSPM, so I modified my tsconfig.json:

{
  "compilerOptions": {"baseUrl": ".",
     "paths": {
        "tslib": [ "jspm_packages/npm/tslib@1.2.0/tslib.d.ts" ]
     }, 

and compiler is now OK.

But there is a problem with runtime (Uncaught (in promise) Error: (SystemJS) tslib.__assign is not a function in Chrome).
tslib.js is correctly loaded, but its factory is never called.

jspm.config.js

SystemJS.config({
  paths: {
    "tslib": "jspm_packages/npm/tslib/tslib",

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueHigh Priority

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions