Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

unable to rebuild the SharePointSSOAppCustomizer SPFx extension from scratch

未关闭
#383 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript

调研方向

从 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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/CopilotStudioSamples 的其他 Issue

查看 microsoft/CopilotStudioSamples 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。