Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

[bug] deploy to vercel #195

Closed
umarhadi opened this issue May 16, 2022 · 2 comments
Closed

[bug] deploy to vercel #195

umarhadi opened this issue May 16, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@umarhadi
Copy link

Hi! I recently deploying tldraw to vercel but is failed, root directory that i deploy is apps/www.

here's the logs:

[22:31:55.883] Cloning completed: 1.182s
[22:31:56.103] Installing build runtime...
[22:31:58.719] Build runtime installed: 2.616s
[22:31:59.047] Looking up build cache...
[22:31:59.171] Build Cache not found
[22:31:59.372] Installing dependencies...
[22:31:59.710] yarn install v1.22.17
[22:31:59.748] info No lockfile found.
[22:31:59.754] [1/4] Resolving packages...
[22:32:04.580] warning @types/next-auth@3.15.0: This is a stub types definition. next-auth provides its own type definitions, so you do not need this installed.
[22:32:05.073] warning aws-sdk > uuid@3.3.2: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
[22:32:05.095] warning aws-sdk > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
[22:32:05.095] warning aws-sdk > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
[22:32:08.642] [2/4] Fetching packages...
[22:32:21.180] [3/4] Linking dependencies...
[22:32:21.182] warning "@tldraw/core > mobx-react-lite@3.4.0" has unmet peer dependency "mobx@^6.1.0".
[22:32:21.186] warning "next-pwa > terser-webpack-plugin@5.3.1" has unmet peer dependency "webpack@^5.1.0".
[22:32:21.186] warning "next-pwa > clean-webpack-plugin@4.0.0" has unmet peer dependency "webpack@>=4.0.0 <6.0.0".
[22:32:21.186] warning "next-pwa > workbox-webpack-plugin@6.5.3" has unmet peer dependency "webpack@^4.4.0 || ^5.9.0".
[22:32:21.186] warning "next-pwa > babel-loader@8.2.5" has unmet peer dependency "@babel/core@^7.0.0".
[22:32:21.186] warning "next-pwa > babel-loader@8.2.5" has unmet peer dependency "webpack@>=2".
[22:32:30.029] [4/4] Building fresh packages...
[22:32:30.856] success Saved lockfile.
[22:32:30.860] Done in 31.16s.
[22:32:30.897] Detected Next.js version: 12.1.6
[22:32:30.899] Running "yarn run build"
[22:32:31.159] yarn run v1.22.17
[22:32:31.200] $ next build
[22:32:32.403] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[22:32:32.403] This information is used to shape Next.js' roadmap and prioritize features.
[22:32:32.403] 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:
[22:32:32.404] https://nextjs.org/telemetry
[22:32:32.404] 
[22:32:32.442] info  - Checking validity of types...
[22:32:42.979] 
[22:32:42.979] Failed to compile.
[22:32:42.980] 
[22:32:42.980] ./pages/api/auth/[...nextauth].ts
[22:32:42.980] 18:9  Error: Definition for rule '@typescript-eslint/ban-ts-comment' was not found.  @typescript-eslint/ban-ts-comment
[22:32:42.980] 
[22:32:42.980] info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[22:32:43.028] error Command failed with exit code 1.
[22:32:43.028] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[22:32:43.040] Error: Command "yarn run build" exited with 1

thank you!

@umarhadi umarhadi added the bug Something isn't working label May 16, 2022
@judicaelandria
Copy link
Contributor

nextauth is disabling linting using the rule @typescript-eslint/ban-ts-comment,
and vercel can't find it, you can disable the eslint rules tho in the next config
but I'm curious why do you want to deploy the tldraw app website? because it's already live here tldraw

@steveruizok
Copy link
Contributor

Seems like a dependency issue. Closing to take off the list but let me know on Discord if you're still stuck.

@TodePond TodePond transferred this issue from tldraw/tldraw May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants