Skip to content

build failed #22

Description

@briteming

hi..

我在windows的git bash程序里操作的:
12799@DESKTOP-B6LK9IO MINGW64 ~/blog-by-kxxoling (master)
$ pnpm build

kxxoling-blog@1.0.0 build C:\Users\12799\blog-by-kxxoling
next build

▲ Next.js 14.2.35

Creating an optimized production build ...
Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc.js" https://nextjs.org/docs/messages/swc-disabled
Using external babel configuration from C:\Users\12799\blog-by-kxxoling.babelrc.js
Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc.js" https://nextjs.org/docs/messages/swc-disabled
Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc.js" https://nextjs.org/docs/messages/swc-disabled
Using external babel configuration from C:\Users\12799\blog-by-kxxoling.babelrc.js
✓ Compiled successfully
Linting and checking validity of types .Failed to compile.

./src/components/Confetti.tsx:1:15
Type error: Module '"react-confetti"' has no exported member 'Props'. Did you mean to use 'import Props from "react-confetti"' instead?

1 | import type { Props as IConfettiOptions } from 'react-confetti'
| ^
2 |
3 | import { useState } from 'react'
4 | import Confetti from 'react-confetti'
Next.js build worker exited with code: 1 and signal: null
Linting and checking validity of types . ELIFECYCLE  Command failed with exit code 1.

12799@DESKTOP-B6LK9IO MINGW64 ~/blog-by-kxxoling (master)
$

怎么解决?非常感谢回复!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions