#Updated to 4.0.3 and now build breaks
1 messages · Page 1 of 1 (latest)
Hi @tight flicker. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
The error message you’re seeing:
ERROR: Could not resolve "effect"
indicates that the build process is unable to find the "effect" package, which is likely a dependency required by @trigger.dev/schema-to-json.
What to do:
-
Ensure that the "effect" package is installed in your project. You can do this by running:
npm install effector, if you use pnpm:
pnpm add effect -
If "effect" is a native package or has native dependencies, you may need to add it to the
externalarray in yourtrigger.config.tsfile to prevent bundling issues. For example:import { defineConfig } from "@trigger.dev/sdk"; export default defineConfig({ project: "<project ref>", build: { external: ["effect"], }, });This approach is recommended for any package that cannot be bundled, as described in the documentation for handling native modules and external dependencies Docs: Build configuration.
If you continue to have issues after installing the package and updating your config, try running the build with debug logging for more details:
npx trigger.dev@latest deploy --log-level debug
or do a dry run to inspect the build output:
npx trigger.dev@latest deploy --dry-run
as suggested in the troubleshooting guides Docs: Troubleshooting, Docs: Custom build extensions troubleshooting.
If the problem persists, consider reaching out on the Trigger.dev Discord for further help, as recommended in the troubleshooting documentation.