You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
“dist-custom-elements-bundle” only produces type definitions when there’s also a “dist” output type #2516
When I disable the type: dist entry and run stencil build, I only get a dist/prod/index.js file.
When I publish this as an NPM package and try to use it in another project, I get a “Cannot find module … or its corresponding type declarations.” error. (Note: This error does not appear in v1.15.0-2; however, the rest of this issue still exists there.)
With the type: dist entry enabled, I do get a dist/prod/index.d.ts file, but it references the types generated in the dist/legacy target.
Expected behavior:
The dist-custom-elements-bundle target should produce a self-contained package, without the dependency on another build target.
A similar problem was fixed with #2402... maybe it is related? There's an internal dist-types output target and dist-custom-elements-bundle should also enable it but I assume it doesn't.
@simonhaenisch Not sure if it is related; could well be. But if that bug is already fixed, would that be a regression? Or does it still happen because my build is happening in “prod mode”?
On a related note, is there documentation on how I can install Stencil in “source mode”, so I can poke around in the code and maybe even come up with a fix?
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.
Activity
simonhaenisch commentedon Jun 18, 2020
A similar problem was fixed with #2402... maybe it is related? There's an internal
dist-typesoutput target anddist-custom-elements-bundleshould also enable it but I assume it doesn't.lxg commentedon Jun 18, 2020
@simonhaenisch Not sure if it is related; could well be. But if that bug is already fixed, would that be a regression? Or does it still happen because my build is happening in “prod mode”?
On a related note, is there documentation on how I can install Stencil in “source mode”, so I can poke around in the code and maybe even come up with a fix?
ionitron-bot commentedon Jul 18, 2020
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.
Thank you for using Stencil!