René's URL Explorer Experiment


Title: Import 3rd Party library with no dependency · Issue #1367 · angular/angular-cli · GitHub

Open Graph Title: Import 3rd Party library with no dependency · Issue #1367 · angular/angular-cli

X Title: Import 3rd Party library with no dependency · Issue #1367 · angular/angular-cli

Description: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) I am running Mac OSX El Capitan (v10.11.5) Versions. Please run ng --version. If there's nothing outputted, please angular-cli: 1.0.0-beta.9 node: 5.7.0 ...

Open Graph Description: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) I am running Mac OSX El Capitan (v10.11.5) Versions. Please run ng --version. If there's nothing outputted, pleas...

X Description: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) I am running Mac OSX El Capitan (v10.11.5) Versions. Please run ng --version. If there's nothing outputted, p...

Opengraph URL: https://github.com/angular/angular-cli/issues/1367

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Import 3rd Party library with no dependency ","articleBody":"1. OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\n   I am running Mac OSX El Capitan (v10.11.5)\n2. Versions. Please run `ng --version`. If there's nothing outputted, please\n\n```\nangular-cli: 1.0.0-beta.9\nnode: 5.7.0\nos: darwin x64\n```\n1. Repro steps. Was this an app that wasn't created using the CLI? What change did you\n   do on your code? \n\nI created the app with the cli. Then I installed the `typedjson` package using `npm install typedjson --save` and also installed typings with `typings install npm:typedjson --save --global`\n\n[TypedJSON repository](https://github.com/JohnWhiteTB/TypedJSON)\n\nI Followed the [3rd party library installation wiki page](https://github.com/angular/angular-cli/wiki/3rd-party-libs). Here are my edited files:\n- angular-cli-build.js:\n\n```\nvar Angular2App = require('angular-cli/lib/broccoli/angular2-app');\n\nmodule.exports = function(defaults) {\n  return new Angular2App(defaults, {\n    vendorNpmFiles: [\n      'systemjs/dist/system-polyfills.js',\n      'systemjs/dist/system.src.js',\n      'zone.js/dist/**/*.+(js|js.map)',\n      'es6-shim/es6-shim.js',\n      'reflect-metadata/**/*.+(ts|js|js.map)',\n      'rxjs/**/*.+(js|js.map)',\n      '@angular/**/*.+(js|js.map)',\n      'typedjson/js/indes.js',\n    ]\n  });\n};\n```\n- system-config.ts:\n\n```\nconst map: any = {\n  'typedjson': 'vendor/typedjson/js'\n};\n\n/** User packages configuration. */\nconst packages: any = {\n  'typedjson': {\n    format: 'cjs',\n    defaultExtension: 'js',\n    main: 'index.js',\n  }\n};\n...\n```\n\nThen I try to import the module in a file:\n\n```\nimport { JSONObject } from 'typedjson';\n\n@JSONObject\nexport class PageMetaData {\n    total: number;\n    offset: number;\n    count: number;\n}\n```\n\nThe result is a error during compilation: \n\n```\nThe Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:\nError: Typescript found the following errors:\n  /Users/alblanc/Projects/Sportner/Api/web-app/tmp/broccoli_type_script_compiler-input_base_path-G44AiMQ5.tmp/0/src/app/response.ts (1, 10): Module ''typedjson'' has no exported mng 'JSONObject'.\n    at BroccoliTypeScriptCompiler._doIncrementalBuild (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:120:19)\n    at BroccoliTypeScriptCompiler.build (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:43:10)\n    at /Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/broccoli-caching-writer/index.js:152:21\n    at lib$rsvp$$internal$$tryCatch (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1036:16)\n    at lib$rsvp$$internal$$invokeCallback (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1048:17)\n    at lib$rsvp$$internal$$publish (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1019:11)\n    at lib$rsvp$asap$$flush (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1198:9)\n    at _combinedTickCallback (node.js:370:9)\n    at process._tickCallback (node.js:401:11)\n\nThe broccoli plugin was instantiated at:\n    at BroccoliTypeScriptCompiler.Plugin (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/broccoli-plugin/index.js:10:31)\n    at BroccoliTypeScriptCompiler.CachingWriter [as constructor] (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/broccoli-caching-writer/index.js:21:10)\n    at BroccoliTypeScriptCompiler (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:26:49)\n    at Angular2App._getTsTree (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/lib/broccoli/angular2-app.js:329:18)\n    at Angular2App._buildTree (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/lib/broccoli/angular2-app.js:124:23)\n    at new Angular2App (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/lib/broccoli/angular2-app.js:53:23)\n    at module.exports (/Users/alblanc/Projects/Sportner/Api/web-app/angular-cli-build.js:10:10)\n    at Class.module.exports.Task.extend.setupBroccoliBuilder (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/angular-cli/lib/models/builder.js:55:19)\n    at Class.module.exports.Task.extend.init (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/angular-cli/lib/models/builder.js:89:10)\n    at new Class (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/core-object/core-object.js:18:12)\n    at Class.module.exports.Task.extend.run (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/angular-cli/lib/tasks/serve.js:15:19)\n    at /Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/angular-cli/lib/commands/serve.js:64:24\n    at lib$rsvp$$internal$$tryCatch (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1036:16)\n    at lib$rsvp$$internal$$invokeCallback (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1048:17)\n    at /Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:331:11\n    at lib$rsvp$asap$$flush (/Users/alblanc/Projects/Sportner/Api/web-app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1198:9)\n```\n1. Mention any other details that might be useful.\n\nI notice every \"member\" strings are replaced by \"mng\". When i try to import `JSONMember` it appears as `JSONMng` in the log. \n\nI also use `typings` v1.0.0. as global node package. \n","author":{"url":"https://github.com/AlBlanc","@type":"Person","name":"AlBlanc"},"datePublished":"2016-07-18T10:10:04Z","url":"https://github.com/angular/angular-cli/issues/1367"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:20794d8f-9fb3-b82d-3a06-1afc3c50c0d5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id86EE:D410B:2C2AC61:39EB447:6B0567DE
html-safe-nonce0090c9ad58a725708763ec327fc1cdaa6c2bbae120263c8ee8755ceca393df60
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkVFOkQ0MTBCOjJDMkFDNjE6MzlFQjQ0Nzo2QjA1NjdERSIsInZpc2l0b3JfaWQiOiI2NTk3OTU2NDYwMTU0ODA4Mjg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac575ffa43cf32271a792b2c1edbbc71dcdb499b337b482ec3edd3459d426b43c8
hovercard-subject-tagissue:166060945
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/1367/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c5c65d824336e4d131e5b747266c160897cf8b0c3ddffba23224066005109ecf/angular/angular-cli/issues/1367
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c5c65d824336e4d131e5b747266c160897cf8b0c3ddffba23224066005109ecf/angular/angular-cli/issues/1367
og:image:altOS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) I am running Mac OSX El Capitan (v10.11.5) Versions. Please run ng --version. If there's nothing outputted, pleas...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlBlanc
hostnamegithub.com
expected-hostnamegithub.com
None1be5cc09efdd4833c24a4ffa71d698e3999fa09071e159fe14c2c08e41c98331
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef6d69234e682c947a48074340e69d45d5901de31
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/1367#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F1367
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F1367
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/1367
Reloadhttps://github.com/angular/angular-cli/issues/1367
Reloadhttps://github.com/angular/angular-cli/issues/1367
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests26 (26)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/1367
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/1367
Import 3rd Party library with no dependency https://github.com/angular/angular-cli/issues/1367#top
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%22
https://github.com/AlBlanc
AlBlanchttps://github.com/AlBlanc
on Jul 18, 2016https://github.com/angular/angular-cli/issues/1367#issue-166060945
TypedJSON repositoryhttps://github.com/JohnWhiteTB/TypedJSON
3rd party library installation wiki pagehttps://github.com/angular/angular-cli/wiki/3rd-party-libs
https://github.com/AlBlanc
AlBlanchttps://github.com/AlBlanc
on Jul 18, 2016https://github.com/angular/angular-cli/issues/1367#issuecomment-233329827
https://github.com/AlBlanc
AlBlanchttps://github.com/AlBlanc
on Jul 18, 2016https://github.com/angular/angular-cli/issues/1367#issuecomment-233366366
https://github.com/AlBlanc
AlBlanchttps://github.com/AlBlanc
on Jul 18, 2016https://github.com/angular/angular-cli/issues/1367#issuecomment-233393668
AlBlanchttps://github.com/AlBlanc
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 19, 2016https://github.com/angular/angular-cli/issues/1367#event-727415892
AlBlanchttps://github.com/AlBlanc
on Jul 19, 2016https://github.com/angular/angular-cli/issues/1367#event-727567640
https://github.com/AlBlanc
AlBlanchttps://github.com/AlBlanc
on Jul 19, 2016https://github.com/angular/angular-cli/issues/1367#issuecomment-233640798
https://github.com/refrigerator
refrigeratorhttps://github.com/refrigerator
on Jul 21, 2016https://github.com/angular/angular-cli/issues/1367#issuecomment-234164114
https://github.com/aciccarello
aciccarellohttps://github.com/aciccarello
on Jul 21, 2016https://github.com/angular/angular-cli/issues/1367#issuecomment-234254215
#1405https://github.com/angular/angular-cli/issues/1405
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Jul 28, 2016https://github.com/angular/angular-cli/issues/1367#issuecomment-235791485
#1455https://github.com/angular/angular-cli/pull/1455
filipesilvahttps://github.com/filipesilva
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 28, 2016https://github.com/angular/angular-cli/issues/1367#event-737335656
filipesilvahttps://github.com/filipesilva
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%22
on Jul 28, 2016https://github.com/angular/angular-cli/issues/1367#event-737335681
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 6, 2019https://github.com/angular/angular-cli/issues/1367#issuecomment-528660962
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 6, 2019https://github.com/angular/angular-cli/issues/1367#event-2612823117
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/1367
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/1367
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.