Title: Importing adhoc 3rd party lib fail · Issue #845 · angular/angular-cli · GitHub
Open Graph Title: Importing adhoc 3rd party lib fail · Issue #845 · angular/angular-cli
X Title: Importing adhoc 3rd party lib fail · Issue #845 · angular/angular-cli
Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) angular-cli: 1.0.0-beta.4 node: 5.7.0 os: darwin x64 Versions. Please run ng --version. If there's noth...
Open Graph Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) angular-cli: 1.0.0-beta.4 node: 5.7.0 os: darwin x64 Versions. ...
X Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) angular-cli: 1.0.0-beta.4 node: 5.7.0 os: darwin x64 Versions. ...
Opengraph URL: https://github.com/angular/angular-cli/issues/845
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Importing adhoc 3rd party lib fail","articleBody":"> ## Please provide us with the following information:\n> 1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\n\nangular-cli: 1.0.0-beta.4\nnode: 5.7.0\nos: darwin x64\n1. Versions. Please run `ng --version`. If there's nothing outputted, please\n run in a Terminal: \n node --version\n And paste the result here.\n2. Repro steps. Was this an app that wasn't created using the CLI? What change did you\n do on your code? etc.\n\nApp created with ng-cli\n\n1 - npm install phoenix_js --save\n\n2 - Update system-config.ts\n\nconst map: any = {\n \"phoenix_js\": \"vendor/phoenix_js/dist/phoenix.js\"\n};\n\nconst packages: any = {\n \"phoenix_js\": {\n \"format\": \"cjs\",\n \"defaultExtension\": \"js\",\n \"main\": \"index\", \n }\n\n3 - Update angular-cli-build.js\n\nmodule.exports = function(defaults) {\n return new Angular2App(defaults, {\n vendorNpmFiles: [\n ...\n 'phoenix_js/dist/phoenix.js',\n ]\n });\n};\n\n4 - Update main.ts\n\nimport { Socket } from 'phoenix_js'\n1. The log given by the failure. Normally this include a stack trace and some\n more information.\n\nError: Typescript found the following errors:\n ./tmp/broccoli_type_script_compiler-in\nmain.ts (6, 24): Cannot find module 'phoenix_js'.\n at BroccoliTypeScriptCompiler._doIncrementalBuild (./node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:115:19)\n at BroccoliTypeScriptCompiler.build (./node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:43:10)\n\n...\n1. Mention any other details that might be useful.\n > ---------------------------------------------------------------\n > > Thanks! We'll be in touch soon.\n\nI did see the post about integrating 3rdparty libs but only includes moment and material -> No help for adhoc thirdparty lib inclusions.\n\nStuck! Thanks for your help.\n","author":{"url":"https://github.com/derailed","@type":"Person","name":"derailed"},"datePublished":"2016-05-19T18:49:34Z","url":"https://github.com/angular/angular-cli/issues/845"}
| 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:d0c86afb-6407-59b4-3342-5b0334e328ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E16A:304E9B:FBEC2:16565B:6B0569EE |
| html-safe-nonce | 85b87abaa65f86ab17e9af87cc7ea543d79167cb4703dd874b9be7e828b73c47 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTZBOjMwNEU5QjpGQkVDMjoxNjU2NUI6NkIwNTY5RUUiLCJ2aXNpdG9yX2lkIjoiNTY2OTg4ODI5MTc2ODcyMzk1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 494b2802f2cb8d760dd65c89e78602e75524588ee9cf6a74a95ec827afdd2871 |
| hovercard-subject-tag | issue:155808121 |
| 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/angular/angular-cli/845/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f387dca0e73e1ddd7a86f659d64c9befc61111c7023c28f1431024494d4b8e65/angular/angular-cli/issues/845 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f387dca0e73e1ddd7a86f659d64c9befc61111c7023c28f1431024494d4b8e65/angular/angular-cli/issues/845 |
| og:image:alt | Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) angular-cli: 1.0.0-beta.4 node: 5.7.0 os: darwin x64 Versions. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | derailed |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1be5cc09efdd4833c24a4ffa71d698e3999fa09071e159fe14c2c08e41c98331 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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 | f6d69234e682c947a48074340e69d45d5901de31 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width