Skip to content

fix PR 1411 build error #1157

@litlfred

Description

@litlfred

#1141 has build errors.
build off branch copilot/continue-typescript-migration
Please iterate fixing until the build successfully works.

Current issue:

2s
17s
0s
2s
0s
0s
0s
3s
14s
1s
0s
2s
1m 8s
Run echo "Building with PUBLIC_URL: /sgex/copilot-continue-typescript-migration/"
Building with PUBLIC_URL: /sgex/copilot-continue-typescript-migration/
Building with REACT_APP_GITHUB_REF_NAME: copilot/continue-typescript-migration

> sgex-workbench@1.0.0 prebuild
> echo 'Skipping prebuild due to TypeScript errors'

Skipping prebuild due to TypeScript errors

> sgex-workbench@1.0.0 build
> npm run configure:repo && craco build


> sgex-workbench@1.0.0 configure:repo
> node scripts/configure-repository.js

🔧 Configuring repository settings for build...
✅ Repository consistency verified: litlfred/sgex
✅ Repository configuration set from package.json:
   Owner: litlfred
   Name: sgex
   Full: litlfred/sgex
   Env file: .env
✅ Updated 404.html with repository: litlfred/sgex
✨ Repository configuration complete!
Creating an optimized production build...
Failed to compile.

TS2345: Argument of type 'IssueTemplate[]' is not assignable to parameter of type 'SetStateAction<TemplateType[]>'.
  Type 'IssueTemplate[]' is not assignable to type 'TemplateType[]'.
    Type 'IssueTemplate' is missing the following properties from type 'TemplateType': type, fields
    76 |       setLoading(true);
    77 |       const fetchedTemplates = await bugReportService.getTemplates();
  > 78 |       setTemplates(fetchedTemplates);
       |                    ^^^^^^^^^^^^^^^^
    79 |     } catch (err) {
    80 |       console.error('Failed to load templates:', err);
    81 |       setError('Failed to load bug report templates. Using defaults.');


npm notice
npm notice New major version of npm available! 10.8.2 -> 11.6.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.6.2
npm notice To update run: npm install -g npm@11.6.2
npm notice

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions