I am using the version 1.63 - ES6 modules with an Angular CLI project.
Angular CLI uses webpack under the hood for compilation purposes.
When the Angular CLI builds the project, it emits the following warnings but the application works as expected:
WARNING in ./node_modules/cesium/Source/Core/buildModuleUrl.js 47:110-117
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
WARNING in ./node_modules/cesium/Source/Core/buildModuleUrl.js 69:31-38
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
WARNING in ./node_modules/cesium/Source/Core/buildModuleUrl.js 91:107-114
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
Here is a snippet from my source code that depicts how I import Cesium into my application:
import { Viewer } from 'cesium';
const viewer = new Viewer(container);
I am using the version 1.63 - ES6 modules with an Angular CLI project.
When the Angular CLI builds the project, it emits the following warnings but the application works as expected:
Here is a snippet from my source code that depicts how I import Cesium into my application: