-
Notifications
You must be signed in to change notification settings - Fork 12k
Connecting complex 3rd party libraries #2837
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
Comments
The errors you are getting are Typescript compilation errors. Typescript doesn't know about anything declared in the Your app still works, that is true. It works because, at runtime, your code works - but at compile time it does not. It doesn't now about The solution to this is to add typings in You can read about it more in https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html |
Hi! I am trying to put var 'CESIUM_BASE_URL' value to be '../node_modules/cesium/Build/Cesium' window['CESIUM_BASE_URL'] = '../node_modules/cesium/Build/Cesium'; and I am getting 404 error from the server: if I copy Cesium folder from node_modules to src/assets window['CESIUM_BASE_URL'] = 'assets/Cesium'; it's working fine! how can I reach '/node_modules/cesium/Build/Cesium' folder without getting 404 error?? thanks, |
@yairtawil the |
Thanks!! |
You can view this repo: https://github.com/YonatanKra/sample_cli_project as to how to install Cesium with angular-cli |
…t. This method does not seem like the correct method, but we were unable to discover an alternative. This solution was found in issue 2837 of angular-cli (see angular/angular-cli#2837). If another solution is found, we will switch.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Repro steps.
ngOnInit() {
this.viewer = new Cesium.Viewer(this.element.nativeElement);
}
The text was updated successfully, but these errors were encountered: