Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: components.d.ts is automatically wrongly generated #6163

Open
3 tasks done
duyduong25121996 opened this issue Feb 17, 2025 · 0 comments
Open
3 tasks done

bug: components.d.ts is automatically wrongly generated #6163

duyduong25121996 opened this issue Feb 17, 2025 · 0 comments
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil Help Wanted

Comments

@duyduong25121996
Copy link

duyduong25121996 commented Feb 17, 2025

Prerequisites

Stencil Version

4.26

Current Behavior

Issue with components.d.ts: '"./models/enums"' has no exported member named 'searchType'. Did you mean 'SearchType'?
import { searchType as SearchType } from "./models/enums";
export { searchType as SearchType } from "./models/enums";

Since it is automatically generated so I cannot adjust.

Expected Behavior

The expectation would be building success without error.

System Info

Steps to Reproduce

My enums.ts file like below:
import { SearchRequestBody } from '../api';
export import SearchType = SearchRequestBody.searchType;

My SearchRequestBody.ts file:
export type SearchRequestBody = { 'q': string; ... };
export namespace SearchRequestBody { export enum searchType { M = 'M', O = 'O', ... } }

Code Reproduction URL

N/A

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Feb 17, 2025
@christian-bromann christian-bromann added Bug: Validated This PR or Issue is verified to be a bug within Stencil Help Wanted and removed triage labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil Help Wanted
Projects
None yet
Development

No branches or pull requests

2 participants