Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tslib not working for JSPM #12887

Closed
mhegazy opened this issue Dec 13, 2016 · 1 comment · Fixed by microsoft/tslib#18
Closed

tslib not working for JSPM #12887

mhegazy opened this issue Dec 13, 2016 · 1 comment · Fixed by microsoft/tslib#18
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue High Priority

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Dec 13, 2016

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",
@mhegazy
Copy link
Contributor Author

mhegazy commented Dec 22, 2016

need to publish another version of tslib.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue High Priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants