unable to rebuild the SharePointSSOAppCustomizer SPFx extension from scratch
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- build-system, frontend
调研方向
从 SSOSamples/SharePointSSOAppCustomizer 开始,检查 lib/components/SharePointSSOAppCustomizer/AgentChat/AgentChat.js,以及报告的包导出问题和 @microsoft/agents-copilotstudio-client 依赖项错误。运行示例的 rebuild 和 serve 步骤;当 SPFx 扩展能够在没有这些模块解析错误的情况下完成构建并提供服务时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
What sample tool are you using?
SharePointSSOAppCustomizer
https://github.com/microsoft/CopilotStudioSamples/tree/main/SSOSamples/SharePointSSOAppCustomizer
Describe the bug
I tried to rebuild the sample but got issues when serving the app
] Error - [webpack] 'dist':
./lib/components/SharePointSSOAppCustomizer/AgentChat/AgentChat.js:65:42-86: Module not found: Error: Package path . is not exported from package C:\SharePointSSOAppCustomizer\node_modules\botframework-webchat-fluent-theme (see exports field in C:\SharePointSSOAppCustomizer\node_modules\botframework-webchat-fluent-theme\package.json)
./node_modules/@microsoft/agents-copilotstudio-client/dist/src/copilotStudioClient.js:17:29-42: Module not found: Error: Can't resolve 'os' in 'C:\SharePointSSOAppCustomizer\node_modules\@microsoft\agents-copilotstudio-client\dist\src'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "os": require.resolve("os-browserify/browser") }'
- install 'os-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "os": false }
To Reproduce
Steps to reproduce the behavior:
Rebuilding the app and running the extension through the previous error
Expected behavior
I rebuilt the SPFx extension as expected and was able to get it working.
Additional context
Add any other context about the problem here.
- 主要语言
- TypeScript
- 星标
- 797
- 派生
- 491
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/CopilotStudioSamples 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
SharePointSSOComponent
microsoft/CopilotStudioSamples#537 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 45/100
microsoft/CopilotStudioSamples#532 · 1 条评论 ·
-
Unable to Deploy SPFx Agent to a Single SharePoint Site (Works Only with Tenant-Wide Deployment) 未关闭
难度 4/5 3-5 天 新手友好度 45/100
microsoft/CopilotStudioSamples#531 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
查看 microsoft/CopilotStudioSamples 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
-
security
难度 2/5 1-3 小时 新手友好度 72/100
IBM/node-sdk-core#373 ·
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 86/100
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
-
chore
难度 2/5 1-3 小时 新手友好度 88/100