bug: dist-custom-elements
module path validation suggests wrong dir
#3507
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
v2.17.2
Current Behavior
When running a stencil build in a new project*, the validation for the module field points to a directory that does not exist. This is shown as a warning in the console to the user like so:
Note the 'components/components' in the warning message
* Although this is most easily reproducible in a new project, that doesn't limit it from occurring in more sophisticated projects
Expected Behavior
No warning should be shown when building a new stencil project
Steps to Reproduce
Without the reproduction URL above:
npm init stencil@latest component component-warn
cd component-warn
,npm i
, and save your progressgit init && git add -A && git commit -m 'init with cli'
stencil.config.ts
such that only thedist-custom-elements
output target is present (to minimize the size of the reproduction):After running the steps immediately above or after pulling down the reproduction case:
cd
into the project's root directorynpm ci
to ensure dependencies are up to datenpm run build
The warning should appear upon running the build step
Code Reproduction URL
https://github.com/rwaskiewicz/stencil-module-validation-repro
Additional Information
No response
The text was updated successfully, but these errors were encountered: