Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vercel - Deploy Failed - one module not found and one missing table #46

Open
josedandrade opened this issue Aug 9, 2024 · 1 comment

Comments

@josedandrade
Copy link

  • Module not found: Can't resolve 'encoding' in '/vercel/path0/node_modules/@linear/sdk/dist'
  • Type error: Cannot find name 'issuesTable'.
image
@edubrigham
Copy link

Module not found still a problem deploying to Vercel - Module not found: Can't resolve 'encoding' in '/vercel/path0/node_modules/@linear/sdk/dist'

[19:31:43.019] Running build in Washington, D.C., USA (East) – iad1
[19:31:43.218] Cloning github.com/edubrigham/buildware-ai (Branch: main, Commit: 772e839)
[19:31:43.233] Skipping build cache, deployment was triggered without cache.
[19:31:43.752] Cloning completed: 532.992ms
[19:31:44.438] Running "vercel build"
[19:31:45.275] Vercel CLI 37.3.0
[19:31:46.411] Installing dependencies...
[19:31:55.868] npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
[19:31:58.730] npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
[19:32:00.879] npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
[19:32:00.913] npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
[19:32:01.333] npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
[19:32:16.751] 
[19:32:16.752] added 812 packages in 30s
[19:32:16.752] 
[19:32:16.752] 272 packages are looking for funding
[19:32:16.752]   run `npm fund` for details
[19:32:16.781] Detected Next.js version: 14.2.3
[19:32:16.786] Running "npm run build"
[19:32:17.004] 
[19:32:17.005] > [email protected] build
[19:32:17.005] > next build
[19:32:17.005] 
[19:32:17.996] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[19:32:17.996] This information is used to shape Next.js' roadmap and prioritize features.
[19:32:17.996] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[19:32:17.997] https://nextjs.org/telemetry
[19:32:17.997] 
[19:32:18.195]   ▲ Next.js 14.2.3
[19:32:18.195] 
[19:32:18.226]    Creating an optimized production build ...
[19:32:49.087]  ⚠ Compiled with warnings
[19:32:49.087] 
[19:32:49.087] ./node_modules/@linear/sdk/dist/index-es.min.js
[19:32:49.088] Module not found: Can't resolve 'encoding' in '/vercel/path0/node_modules/@linear/sdk/dist'
[19:32:49.088] 
[19:32:49.088] Import trace for requested module:
[19:32:49.088] ./node_modules/@linear/sdk/dist/index-es.min.js
[19:32:49.088] ./app/api/linear/webhook/route.ts
[19:32:49.088] 
[19:33:11.675]  ✓ Compiled successfully
[19:33:11.681]    Linting and checking validity of types ...
[19:33:29.734] Failed to compile.
[19:33:29.734] 
[19:33:29.735] ./db/queries/projects-queries.ts:96:11
[19:33:29.735] Type error: Cannot find name 'issuesTable'.
[19:33:29.735] 
[19:33:29.735] �[0m �[90m 94 |�[39m       projectId�[33m:�[39m projectsTable�[33m.�[39mid�[0m
[19:33:29.736] �[0m �[90m 95 |�[39m     })�[0m
[19:33:29.736] �[0m�[31m�[1m>�[22m�[39m�[90m 96 |�[39m     �[33m.�[39m�[36mfrom�[39m(issuesTable)�[0m
[19:33:29.736] �[0m �[90m    |�[39m           �[31m�[1m^�[22m�[39m�[0m
[19:33:29.736] �[0m �[90m 97 |�[39m     �[33m.�[39minnerJoin(projectsTable�[33m,�[39m eq(issuesTable�[33m.�[39mprojectId�[33m,�[39m projectsTable�[33m.�[39mid))�[0m
[19:33:29.736] �[0m �[90m 98 |�[39m     �[33m.�[39mwhere(eq(projectsTable�[33m.�[39mworkspaceId�[33m,�[39m workspaceId))�[0m
[19:33:29.736] �[0m �[90m 99 |�[39m     �[33m.�[39morderBy(desc(issuesTable�[33m.�[39mupdatedAt))�[0m
[19:33:29.809] Error: Command "npm run build" exited with 1
[19:33:30.258] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants