Skip to content

Commit

Permalink
chore(wdio): fix build issues
Browse files Browse the repository at this point in the history
fix a build issue where running `npm run build` twice in the `test/wdio`
directory would result in the following failure:
```
 [47:48.5]  aborted build, 343ms  MEM: 359.2MB

[ ERROR ]  TypeScript: event-custom-type/cmp.tsx:3:44
           Cannot find module '../components' or its corresponding type declarations.

      L3:  import { EventCustomTypeCustomEvent } from '../components';

[47:48.5]  build failed in 343 ms
```

This was introduced in #5493,
where the import statement was not correctly ported over. As a result,
type resolution would fail under `tsconfig.json#moduleResoution` having
a value of 'Node16'
  • Loading branch information
rwaskiewicz committed Mar 18, 2024
1 parent 733eb5a commit 11d0c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/wdio/event-custom-type/cmp.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, h, Event, EventEmitter, State, Listen } from '@stencil/core';

import { EventCustomTypeCustomEvent } from '../components';
import { EventCustomTypeCustomEvent } from '../src/components.js';

export interface TestEventDetail {
value: string;
Expand Down

0 comments on commit 11d0c11

Please sign in to comment.