You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the Remix app, you may see an error like this:
6
+
7
+
```
8
+
import { TriggerProvider } from "@trigger.dev/react";
9
+
^^^^^^^^^^^^^^^
10
+
SyntaxError: Named export 'TriggerProvider' not found. The requested module '@trigger.dev/react' is a CommonJS module, which may not support all module.exports as named exports.
11
+
CommonJS modules can always be imported via the default export, for example using:
12
+
13
+
import pkg from '@trigger.dev/react';
14
+
const { TriggerProvider } = pkg;
15
+
```
16
+
17
+
To fix this, edit your `remix.config.js` file and add the `@trigger.dev/react` package to your list of `serverDependenciesToBundle`:
0 commit comments