-
-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Describe the bug
Tried to update ox_lib and failed.
To Reproduce
As per guide:
pnpm i:
pnpm i
Lockfile is up to date, resolution step is skipped
Already up to date
╭ Warning ───────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Ignored build scripts: esbuild. │
│ Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts. │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────╯
Done in 361ms using pnpm v10.19.0
pnpm build:
pnpm build
ox_lib@0.1.0 build /*/ox_lib/web
tsc && vite build
node_modules/.pnpm/react-hook-form@7.66.0_react@18.2.0/node_modules/react-hook-form/dist/watch.d.ts:37:30 - error TS1139: Type parameter declaration expected.
37 export declare const Watch: <const TFieldNames extends readonly FieldPath[], TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ control, names, render, }: WatchProps<TFieldNames, TFieldValues, TContext, TTransformedValues>) => ReactNode;
~~~~~
node_modules/.pnpm/react-hook-form@7.66.0_react@18.2.0/node_modules/react-hook-form/dist/watch.d.ts:37:36 - error TS1005: ',' expected.
37 export declare const Watch: <const TFieldNames extends readonly FieldPath[], TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ control, names, render, }: WatchProps<TFieldNames, TFieldValues, TContext, TTransformedValues>) => ReactNode;
~~~~~~~~~~~
node_modules/.pnpm/react-hook-form@7.66.0_react@18.2.0/node_modules/react-hook-form/dist/watch.d.ts:37:48 - error TS1005: ',' expected.
37 export declare const Watch: <const TFieldNames extends readonly FieldPath[], TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ control, names, render, }: WatchProps<TFieldNames, TFieldValues, TContext, TTransformedValues>) => ReactNode;
~~~~~~~
node_modules/.pnpm/react-hook-form@7.66.0_react@18.2.0/node_modules/react-hook-form/dist/watch.d.ts:37:65 - error TS1005: ',' expected.
37 export declare const Watch: <const TFieldNames extends readonly FieldPath[], TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ control, names, render, }: WatchProps<TFieldNames, TFieldValues, TContext, TTransformedValues>) => ReactNode;
~~~~~~~~~
node_modules/.pnpm/react-hook-form@7.66.0_react@18.2.0/node_modules/react-hook-form/dist/watch.d.ts:37:74 - error TS1005: ',' expected.
37 export declare const Watch: <const TFieldNames extends readonly FieldPath[], TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ control, names, render, }: WatchProps<TFieldNames, TFieldValues, TContext, TTransformedValues>) => ReactNode;
~
node_modules/.pnpm/react-hook-form@7.66.0_react@18.2.0/node_modules/react-hook-form/dist/watch.d.ts:37:105 - error TS1005: ';' expected.
37 export declare const Watch: <const TFieldNames extends readonly FieldPath[], TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ control, names, render, }: WatchProps<TFieldNames, TFieldValues, TContext, TTransformedValues>) => ReactNode;
~~~~~~~
node_modules/.pnpm/react-hook-form@7.66.0_react@18.2.0/node_modules/react-hook-form/dist/watch.d.ts:37:218 - error TS1005: ')' expected.
37 export declare const Watch: <const TFieldNames extends readonly FieldPath[], TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ control, names, render, }: WatchProps<TFieldNames, TFieldValues, TContext, TTransformedValues>) => ReactNode;
~
node_modules/.pnpm/react-hook-form@7.66.0_react@18.2.0/node_modules/react-hook-form/dist/watch.d.ts:37:287 - error TS1005: ';' expected.
37 export declare const Watch: <const TFieldNames extends readonly FieldPath[], TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ control, names, render, }: WatchProps<TFieldNames, TFieldValues, TContext, TTransformedValues>) => ReactNode;
~
node_modules/.pnpm/react-hook-form@7.66.0_react@18.2.0/node_modules/react-hook-form/dist/watch.d.ts:37:289 - error TS1128: Declaration or statement expected.
37 export declare const Watch: <const TFieldNames extends readonly FieldPath[], TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ control, names, render, }: WatchProps<TFieldNames, TFieldValues, TContext, TTransformedValues>) => ReactNode;
~~
Found 9 errors in the same file, starting at: node_modules/.pnpm/react-hook-form@7.66.0_react@18.2.0/node_modules/react-hook-form/dist/watch.d.ts:37
ELIFECYCLE Command failed with exit code 2.
Expected behavior
If I roll back to previous version it works without issue:
pnpm build
ox_lib@0.1.0 build /*/ox_lib/web
tsc && vite build
vite v5.4.21 building for production...
✓ 1233 modules transformed.
build/index.html 0.48 kB │ gzip: 0.31 kB
build/assets/index-SonfJNby.css 5.94 kB │ gzip: 0.72 kB
build/assets/index-C5AdR8wN.js 2,529.87 kB │ gzip: 851.32 kB
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 3.43s
Screenshots
N/A.
Additional context
N/A.