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

Project fails to build #41

Closed
0xb1b1 opened this issue Nov 20, 2023 · 1 comment
Closed

Project fails to build #41

0xb1b1 opened this issue Nov 20, 2023 · 1 comment

Comments

@0xb1b1
Copy link

0xb1b1 commented Nov 20, 2023

npm run build

> [email protected] build
> npx prisma generate && next build

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma

✔ Generated Prisma Client (4.8.0 | library) to ./node_modules/@prisma/client in 41ms
You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client

import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

(node:47140) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
info  - Loaded env from /Users/voxel/Git/Wildberries/Temp/sentrydiscord.dev/.env
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
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:
https://nextjs.org/telemetry

info  - Linting and checking validity of types .Failed to compile.

./lib/message.ts:21:7
Type error: Argument of type '{ name: string; iconURL: string; }' is not assignable to parameter of type 'EmbedFooterOptions'.
  Object literal may only specify known properties, and 'name' does not exist in type 'EmbedFooterOptions'.

  19 |     })
  20 |     .setFooter({
> 21 |       name: "Please consider sponsoring us!",
     |       ^
  22 |       iconURL: "https://sentrydiscord.dev/sponsor.png",
  23 |     })
  24 |     .setTimestamp(parser.getTime(event))
@IanMitchell
Copy link
Owner

That sounds like an issue with the discord.js version - you might have to double check you've installed the right one. Closing out since this works on the main website though

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