-
-
Notifications
You must be signed in to change notification settings - Fork 832
Closed
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within StencilHelp Wanted
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
4.*
Current Behavior
With an incorrect import path to a typescript interface the first build succeeds.
This happens when the import path is transpiled to the component.d.ts type definition.
Expected Behavior
All builds with incorrect import paths should fail
System Info
Steps to Reproduce
See the Git repo for reproduction...
In a component use an event emitter which uses an interface:
import { MyType } from "./../types/myType";
@Component({
tag: "app-root",
styleUrl: "app-root.css",
shadow: true,
})
export class AppRoot {
@Event({ eventName: "myTypeEvent" }) showMessage: EventEmitter<MyType>;
render() {
return <div> Build Error Test</div>;
}
}
- build the app using "npm run build" - all fine.
- Change the import path to something incorrect and build again: the build succeeds.
- A second and subsequent builds fail, however.
Code Reproduction URL
https://github.com/petercmuc/build-error
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within StencilHelp Wanted