Skip to content

Commit 5a250cf

Browse files
authored
Adds help and fix for “No loader is configured” (#1724)
1 parent 80f2fc8 commit 5a250cf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/troubleshooting.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,22 @@ There should be a link below the error message to the full build logs on your ma
4747

4848
Usually there will be some useful guidance below this message. If you can't figure out what's going wrong then join [our Discord](https://trigger.dev/discord) and create a Help forum post with a link to your deployment.
4949

50+
### `No loader is configured for ".node" files`
51+
52+
This happens because `.node` files are native code and can't be bundled like other packages. To fix this, add your package to [`build.external`](/config/config-file#external) in the `trigger.config.ts` file like this:
53+
54+
```ts trigger.config.ts
55+
import { defineConfig } from "@trigger.dev/sdk/v3";
56+
57+
export default defineConfig({
58+
project: "<project ref>",
59+
// Your other config settings...
60+
build: {
61+
external: ["your-node-package"],
62+
},
63+
});
64+
```
65+
5066
## Project setup issues
5167

5268
### `The requested module 'node:events' does not provide an export named 'addAbortListener'`

0 commit comments

Comments
 (0)