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

进入系统管理界面无数据展示,f12提示single-spa.min.js:142报错:application 'config' died in status LOADING_SOURCE_CODE: Cannot assign to read only property 'exports' of object '#<Object>' #1163

Closed
1 task
githubhybaccount opened this issue Sep 27, 2023 · 6 comments · Fixed by #1167
Assignees
Labels
dev: front-end 需求前端开发 type: question 相关疑问
Milestone

Comments

@githubhybaccount
Copy link

githubhybaccount commented Sep 27, 2023

  • 我已经在 issues 搜索过相关问题了,并没有重复的。

你是否希望来认领这个Bug。

「 Y / N 」

环境信息

  • KnowStreaming version : 3.3.0
  • Operating System version : win10
  • Java version : 8
  • nodejs version : v12.20.0

重现该问题的步骤

访问 http://localhost:8080/config,前端浏览器提示single-spa.min.js:142报错:application 'config' died in status LOADING_SOURCE_CODE: Cannot assign to read only property 'exports' of object '#'
image

希望大佬们帮忙解决,谢谢。

@ZQKC ZQKC added type: question 相关疑问 dev: front-end 需求前端开发 labels Sep 27, 2023
@Wyb7290
Copy link
Collaborator

Wyb7290 commented Oct 8, 2023

已提交PR (#1167)

@ZQKC ZQKC linked a pull request Oct 9, 2023 that will close this issue
6 tasks
@ZQKC ZQKC added this to the v3.4.0 milestone Oct 9, 2023
@Kevin181
Copy link

@Wyb7290 大佬好,非常感谢你的热心解答!我也遇到这个问题,尝试了大佬#1159中提交的解决方案,但可能是环境或者还有其他配置原因,使用解决方法后再build或start也还是不行,报错依旧,希望大佬能帮忙看看,感谢!
以下为修订的文件及内容
`
km-console/packages/config-manager-fe/config/webpack.common.js

overrides: [
// TODO:编译时需要做的事情更多,应该只针对目标第三方库
{
include: './node_modules',
sourceType: 'unambiguous'
}
],
`
环境信息

  • KnowStreaming version : 3.3.0

  • Operating System version : win11

  • Java version : 8

  • nodejs version : v12.22.12

@githubhybaccount
Copy link
Author

@Wyb7290 感谢大佬,已经可以使用。

@Kevin181
Copy link

@githubhybaccount 你好,请问是按照大佬commit里对这个文件km-console/packages/config-manager-fe/config/webpack.common.js 进行修改后打包吗,还有做其他设置吗?非常感谢

@githubhybaccount
Copy link
Author

@githubhybaccount 你好,请问是按照大佬commit里对这个文件km-console/packages/config-manager-fe/config/webpack.common.js 进行修改后打包吗,还有做其他设置吗?非常感谢

是的,按照大佬只修改了km-console/packages/config-manager-fe/config/webpack.common.js,删除node_modules目录,重新编译打包就可以了。

@Kevin181
Copy link

@githubhybaccount 你好,请问是按照大佬commit里对这个文件km-console/packages/config-manager-fe/config/webpack.common.js 进行修改后打包吗,还有做其他设置吗?非常感谢

是的,按照大佬只修改了km-console/packages/config-manager-fe/config/webpack.common.js,删除node_modules目录,重新编译打包就可以了。

感谢解答回复,也感谢大佬的方案。我本地也可以了。如果按照删除node_modules目录,重新install & build后还不行,推荐重启下电脑,可能就修复了(我本地就是如此)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev: front-end 需求前端开发 type: question 相关疑问
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants