Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: SharePoint SSO Component - valibot throwing errors #260

Open
lsheltonSTO opened this issue Oct 22, 2024 · 1 comment
Open

Issue: SharePoint SSO Component - valibot throwing errors #260

lsheltonSTO opened this issue Oct 22, 2024 · 1 comment

Comments

@lsheltonSTO
Copy link

I'm on my third go-around of trying to get this Copilot Studio bot working in SharePoint and I'm very frustrated. I just did a totally fresh third git clone on npm 18.20.4 and then I get these two errors (which I got on the first two tries as well) on gulp build:

Build target: SHIP
[09:51:47] Using gulpfile C:\CopilotStudioSamples-2\SharePointSSOComponent\gulpfile.js
[09:51:47] Starting 'bundle'...
[09:51:47] Starting gulp
[09:51:47] Starting subtask 'pre-copy'...
[09:51:47] Finished subtask 'pre-copy' after 103 ms
[09:51:47] Starting subtask 'copy-static-assets'...
[09:51:47] Starting subtask 'sass'...
[09:51:47] Finished subtask 'sass' after 20 ms
[09:51:47] Starting subtask 'lint'...
[09:51:47] [lint] eslint version: 8.7.0
[09:51:47] Starting subtask 'tsc'...
[09:51:47] [tsc] typescript version: 4.7.4
[09:51:47] Finished subtask 'copy-static-assets' after 117 ms
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2170,27): error TS1139: Type parameter declaration expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2170,42): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2170,65): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2170,74): error TS1005: ')' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2170,94): error TS1109: Expression expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2170,108): error TS1005: ';' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2170,109): error TS1128: Declaration or statement expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2197,32): error TS1139: Type parameter declaration expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2197,47): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2197,70): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2197,79): error TS1005: ')' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2197,99): error TS1109: Expression expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2197,113): error TS1005: ';' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(2197,114): error TS1128: Declaration or statement expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3358,55): error TS1139: Type parameter declaration expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3358,71): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3358,87): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3358,96): error TS1109: Expression expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3358,104): error TS1005: ')' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3358,123): error TS1005: ';' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3358,125): error TS1434: Unexpected keyword or identifier.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3358,134): error TS1128: Declaration or statement expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3358,135): error TS1128: Declaration or statement expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3381,65): error TS1139: Type parameter declaration expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3381,81): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3381,102): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3381,111): error TS1109: Expression expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3381,119): error TS1005: ')' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3381,138): error TS1005: ';' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3381,140): error TS1434: Unexpected keyword or identifier.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3381,149): error TS1128: Declaration or statement expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(3381,150): error TS1128: Declaration or statement expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,58): error TS1139: Type parameter declaration expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,77): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,92): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,103): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,106): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,114): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,131): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,144): error TS1005: ')' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,168): error TS1109: Expression expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,182): error TS1005: ';' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5066,183): error TS1128: Declaration or statement expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,58): error TS1139: Type parameter declaration expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,77): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,92): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,103): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,106): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,114): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,131): error TS1005: ',' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,144): error TS1005: ')' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,168): error TS1109: Expression expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,182): error TS1005: ';' expected.
[09:51:53] Error - [tsc] node_modules/valibot/dist/index.d.ts(5226,183): error TS1128: Declaration or statement expected.
[09:51:53] Error - 'tsc' sub task errored after 6.08 s
exited with code 2
[09:51:53] 'bundle' errored after 6.28 s
About to exit with code: 1
Process terminated before summary could be written, possible error in async code not continuing!
Trying to exit with exit code 1
Build target: SHIP
[09:51:58] Using gulpfile C:\CopilotStudioSamples-2\SharePointSSOComponent\gulpfile.js
[09:51:58] Starting 'package-solution'...
[09:51:58] Starting gulp
[09:51:58] Starting subtask 'package-solution'...
[09:51:58] Error - [package-solution] No manifests were found in 'C:\CopilotStudioSamples-2\SharePointSSOComponent\release/manifests'. Ensure a build has completed successfully
[09:51:58] Finished subtask 'package-solution' after 29 ms
[09:51:58] Finished 'package-solution' after 36 ms
[09:51:58] ==================[ Finished ]==================
Error - [package-solution] No manifests were found in 'C:/CopilotStudioSamples-2/SharePointSSOComponent/release/manifests'. Ensure a build
has completed successfully
[09:51:59] Project pva-extension-sso version:0.0.1
[09:51:59] Build tools version:3.18.0
[09:51:59] Node version:v18.20.4
[09:51:59] Total duration:4.3 s
[09:51:59] Task errors:1
The build failed because a task wrote output to stderr.
Exiting with exit code: 1

So this valibot has been causing me endless headaches, and then I assume as a result of the valibot problems, no manifests get created. Please assist with this, as I've spent days trying to troubleshoot this on my own (and with ChatGPT) with no luck.

@NicolasKheirallah
Copy link

NicolasKheirallah commented Oct 29, 2024

Issue is in Valibot inside the Botframework! So what's needed is to download a older version and add it to the nodemodule of Botframeworks!

18 seems to be the latest version that's supported, as newer version uses Typescript 5 and SPFX does support that

npm i [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants