Hello, I created a page using npm init builder.io@latest
√ Would you like to use TypeScript? … Yes
√ Would you like to use ESLint? … Yes
√ Would you like to use Tailwind CSS? … Yes
√ Would you like your code inside a src/
directory? … Yes
√ Would you like to use App Router? (recommended) … Yes
√ Would you like to use Turbopack for next dev
? … No
? Would you like to customize the import alias (@/*
by default)? » No
Then I integrated the components in localhost:3000
I then used builder to make three pages, then I tried to deploy but it failed.
I edited out buildercontent
Then here is something wrong with PageProps, I looked on Google they said someting about codemods, I applied it, error again, this builder.io is completely unusable!!!
C:\Users\User>cd builder-app
C:\Users\User\builder-app>npm run build
builder-app@0.1.0 build
next build
▲ Next.js 15.1.7
- Environments: .env
Creating an optimized production build …
✓ Compiled successfully
Linting and checking validity of types .Failed to compile.
.next/types/app/[…page]/page.ts:34:29
Type error: Type ‘PageProps’ does not satisfy the constraint ‘import(“C:/Users/User/builder-app/.next/types/app/[…page]/page”).PageProps’.
Types of property ‘params’ are incompatible.
Type ‘{ page: string; }’ is missing the following properties from type ‘Promise’: then, catch, finally, [Symbol.toStringTag]
32 |
33 | // Check the prop type of the entry function
34 | checkFields<Diff<PageProps, FirstArg<TEntry[‘default’]>, ‘default’>>()
| ^
35 |
36 | // Check the arguments and return type of the generateMetadata function
37 | if (‘generateMetadata’ in entry) {
Next.js build worker exited with code: 1 and signal: null
C:\Users\User\builder-app>npx @next/codemod@canary next-async-request-api
Need to install the following packages:
@next/codemod@15.2.0-canary.74
Ok to proceed? (y) y
npm warn deprecated inflight@1.0.6: 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.
npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
Thank you for using @next/codemod!
But before we continue, please stash or commit your git changes.
You may use the --force flag to override this safety check.
C:\Users\User\builder-app>npm run build
builder-app@0.1.0 build
next build
▲ Next.js 15.1.7
- Environments: .env
Creating an optimized production build …
✓ Compiled successfully
Linting and checking validity of types …Failed to compile.
.next/types/app/[…page]/page.ts:34:29
Type error: Type ‘PageProps’ does not satisfy the constraint ‘import(“C:/Users/User/builder-app/.next/types/app/[…page]/page”).PageProps’.
Types of property ‘params’ are incompatible.
Type ‘{ page: string; }’ is missing the following properties from type ‘Promise’: then, catch, finally, [Symbol.toStringTag]
32 |
33 | // Check the prop type of the entry function
34 | checkFields<Diff<PageProps, FirstArg<TEntry[‘default’]>, ‘default’>>()
| ^
35 |
36 | // Check the arguments and return type of the generateMetadata function
37 | if (‘generateMetadata’ in entry) {
Next.js build worker exited with code: 1 and signal: null
C:\Users\User\builder-app>npx @next/codemod@canary next-async-request-api --force
WARNING: Unable to determine if git directory is clean. Forcibly continuing.
√ On which files or directory should the codemods be applied? … C:\Users\User\builder-app.next\types\app[…page]
Executing command: jscodeshift --no-babel --ignore-pattern=/node_modules/ --ignore-pattern=/.next/ --extensions=tsx,ts,jsx,js --transform C:\Users\User\AppData\Local\npm-cache_npx\6a090669e21b4303\node_modules@next\codemod\transforms\next-async-request-api.js C:\Users\User\builder-app.next\types\app[…page]
No files selected, nothing to do.
All done.
Results:
0 errors
0 unmodified
0 skipped
0 ok
Time elapsed: 0.005seconds
C:\Users\User\builder-app>npx @next/codemod@canary next-async-request-api --force
WARNING: Unable to determine if git directory is clean. Forcibly continuing.
√ On which files or directory should the codemods be applied? … .
Executing command: jscodeshift --no-babel --ignore-pattern=/node_modules/ --ignore-pattern=/.next/ --extensions=tsx,ts,jsx,js --transform C:\Users\User\AppData\Local\npm-cache_npx\6a090669e21b4303\node_modules@next\codemod\transforms\next-async-request-api.js .
Processing 10 files…
Spawning 10 workers…
Sending 1 files to free worker…
Sending 1 files to free worker…
Sending 1 files to free worker…
Sending 1 files to free worker…
Sending 1 files to free worker…
Sending 1 files to free worker…
Sending 1 files to free worker…
Sending 1 files to free worker…
Sending 1 files to free worker…
Sending 1 files to free worker…
All done.
Results:
0 errors
9 unmodified
0 skipped
1 ok
Time elapsed: 0.585seconds
C:\Users\User\builder-app>npm run build
builder-app@0.1.0 build
next build
▲ Next.js 15.1.7
- Environments: .env
Creating an optimized production build …
✓ Compiled successfully
Linting and checking validity of types …Failed to compile.
./src/components/builder.tsx:12:1
Type error: Cannot find name ‘builder’.
10 |
11 | // Builder Public API Key set in .env file
12 | builder.init(process.env.NEXT_PUBLIC_BUILDER_API_KEY!);
| ^
13 |
14 | export function RenderBuilderContent({ content, model }: BuilderPageProps) {
15 | // Call the useIsPreviewing hook to determine if
Next.js build worker exited with code: 1 and signal: null
C:\Users\User\builder-app>npm install builder.io
added 71 packages, and audited 563 packages in 12s
165 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities
C:\Users\User\builder-app>npm run build
builder-app@0.1.0 build
next build
▲ Next.js 15.1.7
- Environments: .env
Creating an optimized production build …
✓ Compiled successfully
Linting and checking validity of types …Failed to compile.
./src/components/builder.tsx:12:1
Type error: Cannot find name ‘builder’.
10 |
11 | // Builder Public API Key set in .env file
12 | builder.init(process.env.NEXT_PUBLIC_BUILDER_API_KEY!);
| ^
13 |
14 | export function RenderBuilderContent({ content, model }: BuilderPageProps) {
15 | // Call the useIsPreviewing hook to determine if
Next.js build worker exited with code: 1 and signal: null
C:\Users\User\builder-app>npm run build
builder-app@0.1.0 build
next build
▲ Next.js 15.1.7
- Environments: .env
Creating an optimized production build …
✓ Compiled successfully
Failed to compile.
./src/components/builder.tsx
5:10 Error: ‘BuilderContent’ is defined but never used. @typescript-eslint/no-unused-vars
info - Need to disable some ESLint rules? Learn more here: Configuration: ESLint | Next.js
C:\Users\User\builder-app>npm run build
builder-app@0.1.0 build
next build
▲ Next.js 15.1.7
- Environments: .env
Creating an optimized production build …
✓ Compiled successfully
Failed to compile.
./src/components/builder.tsx
5:10 Error: ‘BuilderContent’ is defined but never used. @typescript-eslint/no-unused-vars
info - Need to disable some ESLint rules? Learn more here: Configuration: ESLint | Next.js
C:\Users\User\builder-app>npm run build
builder-app@0.1.0 build
next build
▲ Next.js 15.1.7
- Environments: .env
Creating an optimized production build …
✓ Compiled successfully
Linting and checking validity of types …Failed to compile.
./src/components/builder.tsx:12:1
Type error: Cannot find name ‘builder’.
10 |
11 | // Builder Public API Key set in .env file
12 | builder.init(process.env.NEXT_PUBLIC_BUILDER_API_KEY!);
| ^
13 |
14 | export function RenderBuilderContent({ content, model }: BuilderPageProps) {
15 | // Call the useIsPreviewing hook to determine if
Next.js build worker exited with code: 1 and signal: null
C:\Users\User\builder-app>