Skip to content

input-time-picker causes bundler warnings due to how it's loading dayjs modules #7019

Closed
@jcfranco

Description

@jcfranco

Actual Behavior

Bundling an app using calcite-input-time-picker causes the following error in Webpack:

WARNING in .../node_modules/@esri/calcite-components/dist/components/calcite-input-time-picker.js 1415:44-129
Critical dependency: the request of a dependency is an expression
 @ ./src/index.js 3:0-76 

Expected Behavior

No error is displayed when building with Webpack.

Reproduction Sample

https://github.com/Esri/calcite-components-examples

Reproduction Steps

  1. Clone repo
  2. cd into the Webpack example directory
  3. Update calcite-components to v1.4.0
  4. run npm run build

Reproduction Version

1.4.0

Relevant Info

No response

Regression?

No response

Priority impact

p1 - need for current milestone

Impact

This will impact anyone bundling with Webpack.

Esri team

ArcGIS Maps SDK for JavaScript

cc @bsvensson @dasa

Metadata

Metadata

Assignees

Labels

4 - verifiedIssues that have been tested, confirmed as mitigated, and are ready to close.ArcGIS Maps SDK for JavaScriptIssues logged by ArcGIS SDK for JavaScript team members.bugBug reports for broken functionality. Issues should include a reproduction of the bug.estimate - 2Small fix or update, may require updates to tests.impact - p1 - need for current milestoneUser set priority impact status of p1 - need for current milestonep - highIssue should be addressed in the current milestone, impacts component or core functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions