-
Notifications
You must be signed in to change notification settings - Fork 24
Description
We're seeing the following error at https://jenkins.dataverse.org/job/IQSS-dataverse-develop/1340/consoleFull
TASK [dataverse : npm run build] ***********************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["npm", "run", "build", "--", "--base=/spa"], "delta": "0:00:13.852793", "end": "2023-05-12 19:13:50.745822", "msg": "non-zero return code", "rc": 2, "start": "2023-05-12 19:13:36.893029", "stderr": "", "stderr_lines": [], "stdout": "\n> [email protected] build\n> tsc && vite build --base=/spa\n\nsrc/index.tsx(6,31): error TS2307: Cannot find module 'dataverse-design-system' or its corresponding type declarations.\nsrc/sections/layout/Layout.tsx(2,27): error TS2307: Cannot find module 'dataverse-design-system' or its corresponding type declarations.\nsrc/sections/layout/footer/Footer.tsx(1,37): error TS2307: Cannot find module 'dataverse-design-system' or its corresponding type declarations.\nsrc/sections/layout/header/Header.tsx(3,24): error TS2307: Cannot find module 'dataverse-design-system' or its corresponding type declarations.\ntests/support/commands.tsx(40,31): error TS2307: Cannot find module 'dataverse-design-system' or its corresponding type declarations.", "stdout_lines": ["", "> [email protected] build", "> tsc && vite build --base=/spa", "", "src/index.tsx(6,31): error TS2307: Cannot find module 'dataverse-design-system' or its corresponding type declarations.", "src/sections/layout/Layout.tsx(2,27): error TS2307: Cannot find module 'dataverse-design-system' or its corresponding type declarations.", "src/sections/layout/footer/Footer.tsx(1,37): error TS2307: Cannot find module 'dataverse-design-system' or its corresponding type declarations.", "src/sections/layout/header/Header.tsx(3,24): error TS2307: Cannot find module 'dataverse-design-system' or its corresponding type declarations.", "tests/support/commands.tsx(40,31): error TS2307: Cannot find module 'dataverse-design-system' or its corresponding type declarations."]}
This PR was merged yesterday...
... and its description includes some steps that I think are relevant:
1. Build the module
`npm run install`
`cd packages/design-system`
`npm run build`
2. Use the module in the main application
Go back to the root `dataverse-frontend/`
`npm run start`
That is to say, I think we need to teach Ansible to separately build that new "dataverse-design-system" module