-
Notifications
You must be signed in to change notification settings - Fork 302
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
✨ [Feature]: 本地启动项目时,如果更改本地开发启动的base路径为/design,页面控制台会报错,可以帮忙解决一下吗 #121
Comments
Title: ✨ [Feature]: When starting the project locally, if you change the base path for local development startup to /design, the page console will report an error. Can you help solve it? |
@youchen133 感谢反馈,已经记录,会尽快安排解决 |
@youchen133 Thanks for the feedback, it has been recorded and will be resolved as soon as possible |
能提供更多的信息吗?我这边复现不了,或者在微信群里和我们沟通一下 |
Can you provide more information? I can’t reproduce it here, or you can communicate with us in the WeChat group |
@by陈133 |
从报错信息来看,这个是 monaco worker 相关的报错,暂时没发现影响到的功能模块,后续会定位消除掉 |
Judging from the error message, this is an error related to monaco worker. The affected functional modules have not been found for the time being. They will be located and eliminated in the future. |
修改design-core下的打包配置文件vite.config.js,将base改成/design,本地启动项目页面控制台就有报错 |
Modify the packaging configuration file vite.config.js under design-core, change base to /design, and an error will be reported in the console of the local startup project page. |
这个是此issue的答案 |
This is the answer to this issue |
What problem does this feature solve
design-core文件目录下的vite.config.js
const config = {
base: '/design',
publicDir: path.resolve(__dirname, './public'),
resolve: {
extensions: ['.js', '.jsx', '.vue'],
alias: {}
}
What does the proposed API look like
可否帮忙看一下,解决一下这个控制台报错
The text was updated successfully, but these errors were encountered: