Closed James-Wilkinson-git closed 3 months ago
Hey @James-Wilkinson-git , thanks for reporting.
Unfortunately I can't really say why this happens. I wonder if it is possible to create a reproducible example, maybe via Docker to reproduce this problem, otherwise it seems difficult to investigate this issue. Wdyt?
Thanks for the issue! This issue has been labeled as needs reproduction
. This label is added to issues that need a code reproduction.
Please reproduce this issue in an Stencil starter component library and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.
For a guide on how to create a good reproduction, see our Contributing Guide.
Hey @James-Wilkinson-git , thanks for reporting.
Unfortunately I can't really say why this happens. I wonder if it is possible to create a reproducible example, maybe via Docker to reproduce this problem, otherwise it seems difficult to investigate this issue. Wdyt?
I know but I’m not good at docker. Can’t think of any other reasons it’s missing two files only when built in the cloud and not locally.
I’m wondering if related to this and it’s generating before it’s ready?
@James-Wilkinson-git mind checking using our nightly build 4.19.2-dev.1721883721.7ae36aa?
No luck :(
I just added a new component and it made it's type file and moved it over. So any ideas what could cause 2 components to not generate in a CI?
export declare class EdsMultiSelect {
searchComponentRef: HTMLEdsSearchElement;
popoverRef: HTMLEdsPopoverElement;
I think the issue may be something failing silently, in VSCode the HTMLEDSSearchElement is erroring these two components that are missing types are compound components
@Component({
tag: 'eds-multi-select',
styleUrl: '../../../../../styles/eds-multi-select.scss',
shadow: false,
})
export class EdsMultiSelect {
searchComponentRef: HTMLEdsSearchElement;
popoverRef: HTMLEdsPopoverElement;
In this file we aren't importing these definitions and VSCode is not erroring them. However appears to be reading it from component.d.ts
Ok confirmed the problem is in the generating of types if ther compiler runs into another type that it can't resolve it is failing silently and not generating that type.
To Reproduce make a component define something to a type that doesnt exist compile and see that it won't generate a types file for that component.
Should error or warn in the console.
Not sure how to define the type here though either so that I don't have to use any.
export class EdsMultiSelect {
searchComponentRef: any;
popoverRef: any;
This bug has been previous reported but was closed with no action https://github.com/ionic-team/stencil/issues/2769
Thanks for investigating this issue @James-Wilkinson-git ! Do you think it is possible to provide a minimal reproducible example of this case?
There is one in the linked bug.
The linked bug has been resolved, if what you experience differs from that we need a new reproduction case that show cases that.
That bug isn’t resolved it’s literally the same behaviour. The bug is closed not resolved.
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!
Prerequisites
Stencil Version
4.19.2
Current Behavior
We are missing two type files from the dist/types folder when running on GitHub Actions, these files are generated locally on our Windows machine, GitHub is running Ubuntu.
Stencil Config
When I
ls
the dist/types directory it is missing two component directories, these are not missing on local.I've also tried running the CI on Windows instead of Ubuntu to match my local same issue. And checked both machines have 16GB or ram and this says it uses 500MB of memory :/
Any ideas?
Expected Behavior
Should generate all type files in CI
System Info
No response
Steps to Reproduce
Compile custom components in github CI
Code Reproduction URL
na
Additional Information
No response