Hello, i am new in js
I want to replace the login page
However, I cannot build the plugin when I followed the tutorial https://docs.nocobase.com/plugin-samples/router/replace-page.
The error code is like that.
packages/plugins/@nocobase/plugin-auth-page/src/client/AuthLayout.tsx(37,10): error TS2559: Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'.
TypeScript: 1 semantic error
TypeScript: emit succeeded (with errors)
(node:3341698) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
/home/lscm/proj/new_crud/my-nocobase-app/node_modules/gulp-typescript/release/output.js:131
this.streamFull.emit('error', new Error("TypeScript: Compilation failed"));
^
Error: TypeScript: Compilation failed
at Output.mightFinish (/home/lscm/proj/new_crud/my-nocobase-app/node_modules/gulp-typescript/release/output.js:131:43)
at /home/lscm/proj/new_crud/my-nocobase-app/node_modules/gulp-typescript/release/output.js:66:22
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Emitted 'error' event on CompileStream instance at:
at /home/lscm/proj/new_crud/my-nocobase-app/node_modules/gulp-typescript/release/output.js:117:29
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Node.js v23.7.0
/home/lscm/proj/new_crud/my-nocobase-app/node_modules/execa/lib/error.js:60
error = new Error(message);
How to deal with this problem?