René's URL Explorer Experiment


Title: Connecting complex 3rd party libraries · Issue #2837 · angular/angular-cli · GitHub

Open Graph Title: Connecting complex 3rd party libraries · Issue #2837 · angular/angular-cli

X Title: Connecting complex 3rd party libraries · Issue #2837 · angular/angular-cli

Description: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.17 node: 6.3.1 os: win32 x64 Repro steps. I've tried to setup a 3rd party library (cesiumjs). There are many errors during the "serve" process. npm install cesium --save In angular-cli.jso...

Open Graph Description: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.17 node: 6.3.1 os: win32 x64 Repro steps. I've tried to setup a 3rd party library (cesiumjs). There are many errors during the "serve" process. npm ...

X Description: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.17 node: 6.3.1 os: win32 x64 Repro steps. I've tried to setup a 3rd party library (cesiumjs). There are many errors during the "serve"...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Connecting complex 3rd party libraries","articleBody":"\u003e ---\n### OS?\n\n\u003e Windows 10\n### Versions.\n\n\u003e angular-cli: 1.0.0-beta.17\n\u003e node: 6.3.1\n\u003e os: win32 x64\n### Repro steps.\n\n\u003e I've tried to setup a 3rd party library (cesiumjs). There are many errors during the \"serve\" process.\n\u003e 1) npm install cesium --save\n\u003e 2) In angular-cli.json file:\n\u003e \n\u003e ```\n\u003e \"styles\": [\n\u003e         \"styles.css\",\n\u003e         \"../node_modules/cesium/Build/Cesium/Widgets/widgets.css\"\n\u003e       ],\n\u003e       \"scripts\": [\n\u003e         \"../node_modules/cesium/Build/Cesium/Cesium.js\"\n\u003e       ],\n\u003e ```\n\u003e \n\u003e 3) Created a simple component:\n\u003e ng g component cesium-component\n\u003e 4) Inside the component used the Cesium global that's supposed to be available:\n\u003e \n\u003e ```\n\u003e constructor(public element: ElementRef) {\n\u003e     Cesium.BingMapsApi.defaultKey = 'AroazdWsTmTcIx4ZE3SIicDXX00yEp9vuRZyn6pagjyjgS-VdRBfBNAVkvrucbqr';\n\u003e     window.CESIUM_BASE_URL = '/assets';\n\u003e   }\n\u003e ```\n\n  ngOnInit() {\n    this.viewer = new Cesium.Viewer(this.element.nativeElement);\n  }\n\n```\n5) There are errors during the `ng serve` process (see the errors section).\n6) The app does load, and Ceisum gives an error it cannot find files.\n7) I copy Cesium into the app's assets dir, and set: `window.CESIUM_BASE_URL = '/assets/Cesium';` (as in the code example above)\n8) I get errors during the `serve` process (see below).\n\n### The log given by the failure.\n\u003e '''\nERROR in [default] D:\\development\\edu\\ngCli\\my_first_cli_project\\src\\app\\cesium-component\\cesium-component.component.ts:11:4 \nCannot find name 'Cesium'.\n\nERROR in [default] D:\\development\\edu\\ngCli\\my_first_cli_project\\src\\app\\cesium-component\\cesium-component.component.ts:12:11 \nProperty 'CESIUM_BASE_URL' does not exist on type 'Window'.\n\nERROR in [default] D:\\development\\edu\\ngCli\\my_first_cli_project\\src\\app\\cesium-component\\cesium-component.component.ts:16:9 \nProperty 'viewer' does not exist on type 'CesiumComponentComponent'.\n\nERROR in [default] D:\\development\\edu\\ngCli\\my_first_cli_project\\src\\app\\cesium-component\\cesium-component.component.ts:16:22 \nCannot find name 'Cesium'.\n'''\n\n\n### Mention any other details that might be useful.\nMy main question is:\nIs there a way to connect the Cesium assets without copying them to the app itself? (make the app get them from node modules?) What would be best practice here?\n\nAnother small thing - why do the errors appear during the `serve` phase, while the app itself seems to be working correctly (I can see Cesium and it's running properly in my component).\n\n\u003e ---------------------------------------------------------------\nThanks\n```\n","author":{"url":"https://github.com/YonatanKra","@type":"Person","name":"YonatanKra"},"datePublished":"2016-10-23T05:41:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/2837/angular-cli/issues/2837"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:697ef6d9-a2e7-bfd3-e13c-d682670e1a68
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9692:7E6BE:B54B2DE:EAAE756:697681FA
html-safe-nonce3e488450177737c8872e6a1dcc5d0dc728e914f2db2ee8d329d120402bc9a020
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjkyOjdFNkJFOkI1NEIyREU6RUFBRTc1Njo2OTc2ODFGQSIsInZpc2l0b3JfaWQiOiI3MjA1ODA0MjYwOTQ1MTA1ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccd4a3bc1a1097d22290a968fc5f4f35c5e9a98999bad05d74747a88d0eb20dc9
hovercard-subject-tagissue:184673096
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/2837/issue_layout
twitter:imagehttps://opengraph.githubassets.com/64ddb7bddc22510220614a0dba642b0248cac3a2e722e989d13b7c602f7ce292/angular/angular-cli/issues/2837
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/64ddb7bddc22510220614a0dba642b0248cac3a2e722e989d13b7c602f7ce292/angular/angular-cli/issues/2837
og:image:altOS? Windows 10 Versions. angular-cli: 1.0.0-beta.17 node: 6.3.1 os: win32 x64 Repro steps. I've tried to setup a 3rd party library (cesiumjs). There are many errors during the "serve" process. npm ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYonatanKra
hostnamegithub.com
expected-hostnamegithub.com
None032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411
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
release5b577f6be6482e336e3c30e8daefa30144947b17
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/2837#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F2837
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F2837
Sign up https://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/2837
Reloadhttps://github.com/angular/angular-cli/issues/2837
Reloadhttps://github.com/angular/angular-cli/issues/2837
angular https://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Notifications https://github.com/login?return_to=%2Fangular%2Fangular-cli
Fork 11.9k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Star 27k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Code https://github.com/angular/angular-cli
Issues 265 https://github.com/angular/angular-cli/issues
Pull requests 30 https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security 1 https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
Code https://github.com/angular/angular-cli
Issues https://github.com/angular/angular-cli/issues
Pull requests https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/2837
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/2837
Connecting complex 3rd party librarieshttps://github.com/angular/angular-cli/issues/2837#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
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
https://github.com/YonatanKra
https://github.com/YonatanKra
YonatanKrahttps://github.com/YonatanKra
on Oct 23, 2016https://github.com/angular/angular-cli/issues/2837#issue-184673096
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
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%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

Viewport: width=device-width


URLs of crawlers that visited me.