Skip to content

Commit

Permalink
docs: add guide of type exports issue
Browse files Browse the repository at this point in the history
  • Loading branch information
leegeunhyeok committed Nov 16, 2023
1 parent bec3b70 commit 9b59d54
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/docs/troubleshooting/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,23 @@ slug: /trouble-shooting/basics

## On build time

- Try rebuild with `--reset-cache` flag
- When `No matching export in "xxx" for import "xxx"` occurs
- Replace import statements to `type import` statements.
```ts
// AS IS
import { ValueIdentifier, TypeIdentifierA } from '...';
import TypeIdentifierB from '...';

// TO BE
import { ValueIdentifier, type TypeIdentifierA } from '...';
import type TypeIdentifierB from '...';
```
- When `Syntax Error` occurs
- Target library may be using [Flow](https://flow.org).
- Add the package name to `stripFlowPackageNames` in configuration file.
- When unknown error occurs
- Add the package name to `fullyTransformPackageNames` in configuration file.
- Try rebuild with `--reset-cache` flag.
- Please [report issue](https://github.com/leegeunhyeok/react-native-esbuild/issues) and share demo code for reproduce the issue.

## On runtime
Expand Down

2 comments on commit 9b59d54

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 16.22% 328/2022
🔴 Branches 16.3% 82/503
🔴 Functions 10.8% 65/602
🔴 Lines 15.51% 298/1921

Test suite run success

83 tests passing in 10 suites.

Report generated by 🧪jest coverage report action from 9b59d54

@vercel
Copy link

@vercel vercel bot commented on 9b59d54 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.