You can mark the path "convex/server" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
- Dominant language
- TypeScript
- Stars
- 4.6k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
I have this error while installing convex chef
git clone https://github.com/get-convex/chef.git
Cloning into 'chef'...
remote: Enumerating objects: 21367, done.
remote: Counting objects: 100% (414/414), done.
remote: Compressing objects: 100% (114/114), done.
remote: Total 21367 (delta 359), reused 300 (delta 300), pack-reused 20953 (from 2)
Receiving objects: 100% (21367/21367), 77.08 MiB | 309.00 KiB/s, done.
Resolving deltas: 100% (15412/15412), done.
> npm install -g pnpm
added 1 package in 2s
1 package is looking for funding
run `npm fund` for details
> cd chef
> echo 'VITE_CONVEX_URL=placeholder' >> .env.local
> npx convex dev --once
Need to install the following packages:
convex@1.27.1
Ok to proceed? (y) y
? What would you like to configure? create a new project
? Project name: chef
✔ Created project chef-2733e, manage it at https://dashboard.convex.dev/t/khanh-thanh/chef-2733e
✔ Provisioned a dev deployment and saved its:
name as CONVEX_DEPLOYMENT to .env.local
URL as VITE_CONVEX_URL to .env.local
Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at https://dashboard.convex.dev/d/stoic-lark-339
⠋ Preparing Convex functions...
✘ [ERROR] Could not resolve "convex/server"
convex/convex.config.ts:2:26:
2 │ import { defineApp } from "convex/server";
╵ ~~~~~~~~~~~~~~~
You can mark the path "convex/server" as external to exclude it from the bundle, which will remove
this error and leave the unresolved path in the bundle.
✘ [ERROR] Could not resolve "@convex-dev/rate-limiter/convex.config"
convex/convex.config.ts:3:24:
3 │ import rateLimiter from "@convex-dev/rate-limiter/convex.config";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "@convex-dev/rate-limiter/convex.config" as external to exclude it from the
bundle, which will remove this error and leave the unresolved path in the bundle.
✘ [ERROR] Could not resolve "@convex-dev/migrations/convex.config"
convex/convex.config.ts:4:23:
4 │ import migrations from "@convex-dev/migrations/convex.config";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "@convex-dev/migrations/convex.config" as external to exclude it from the
bundle, which will remove this error and leave the unresolved path in the bundle.
✖ esbuild failed: Error: Build failed with 3 errors:
convex/convex.config.ts:2:26: ERROR: Could not resolve "convex/server"
convex/convex.config.ts:3:24: ERROR: Could not resolve "@convex-dev/rate-limiter/convex.config"
convex/convex.config.ts:4:23: ERROR: Could not resolve "@convex-dev/migrations/convex.config"
Contributor guide
Assessment
This issue has not been assessed yet.