Title: automatic module resolution for JPSM packages · Issue #6012 · microsoft/TypeScript · GitHub
Open Graph Title: automatic module resolution for JPSM packages · Issue #6012 · microsoft/TypeScript
X Title: automatic module resolution for JPSM packages · Issue #6012 · microsoft/TypeScript
Description: I'm trying to use angular2 as a JSPM package. When I'm doing something like import {bootstrap, Component, Input} from 'angular2/angular2'; in my code then typescript complains that it can't find the definitions and I don't get any code c...
Open Graph Description: I'm trying to use angular2 as a JSPM package. When I'm doing something like import {bootstrap, Component, Input} from 'angular2/angular2'; in my code then typescript complains that it can't find th...
X Description: I'm trying to use angular2 as a JSPM package. When I'm doing something like import {bootstrap, Component, Input} from 'angular2/angular2'; in my code then typescript complains that ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/6012
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"automatic module resolution for JPSM packages","articleBody":"I'm trying to use angular2 as a JSPM package.\nWhen I'm doing something like\n`import {bootstrap, Component, Input} from 'angular2/angular2';`\nin my code then typescript complains that it can't find the definitions and I don't get any code completions.\n\nThe workaround is to install angular2 also as a npm package and set moduleResolution to node. However this seems not optimal, because now I have two dependencies whose versions need to be aligned.\n\nI guess tsc could resolve the modules for jspm/systemjs similar to how it already can do it for node. E.g. look up package.json, config.js and use the pathes from there the locate to type definitions inside the jspm_packages folder.\n\nNot really sure if this is covered by #5039 and #5728. \n","author":{"url":"https://github.com/Matthias247","@type":"Person","name":"Matthias247"},"datePublished":"2015-12-09T10:53:25Z","url":"https://github.com/microsoft/TypeScript/issues/6012"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:08e19e53-3501-60c1-5456-f7f07eecd4e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB0C:23AC0D:24151F:30BE79:6AFBAF39 |
| html-safe-nonce | 3fd2b01b9e5a545d5669507c12c14a3333d07d01bdb8c019d609807c7cf563c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjBDOjIzQUMwRDoyNDE1MUY6MzBCRTc5OjZBRkJBRjM5IiwidmlzaXRvcl9pZCI6Ijc1NDM1NTEwNTQzNDA0MDMwMDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ce9de6a2d262d63d257c226d9c6253536722a54b56c785b987ac21806ea24012 |
| hovercard-subject-tag | issue:121210766 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/6012/issue_layout |
| twitter:image | https://opengraph.githubassets.com/571f8713b5f0dfd94f2dc54f3dd11752b180f32a315c726776d7fa8f4beab372/microsoft/TypeScript/issues/6012 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/571f8713b5f0dfd94f2dc54f3dd11752b180f32a315c726776d7fa8f4beab372/microsoft/TypeScript/issues/6012 |
| og:image:alt | I'm trying to use angular2 as a JSPM package. When I'm doing something like import {bootstrap, Component, Input} from 'angular2/angular2'; in my code then typescript complains that it can't find th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Matthias247 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08c8f17f9d27054a108b8b6254e405de0151f660 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width