We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
一、我分别克隆了下面代码到本地:
二、先使用node 16的环境,在codesandbox-client根目录,执行:
yarn install yarn build:deps yarn build:sandpack
然后进入www目录执行:python -m http.server启动了8000端口的本地沙箱,访问地址:http://10.20.62.16:8000
python -m http.server
http://10.20.62.16:8000
三、切换至node 18环境,在tango目录下
apps\playground\.umirc.ts
// https: { // key: path.resolve(__dirname, 'local.netease.com-key.pem'), // cert: path.resolve(__dirname, 'local.netease.com.pem'), // http2: false, // },
apps\playground\package.json
"dev": "cross-env PORT=8001 umi dev",
apps\playground\src\pages\index.tsx
<Sandbox onMessage={(e) => { if (e.type === 'done') { const sandboxWindow: any = sandboxQuery.window; if (sandboxWindow.localTangoComponentPrototypes) { workspace.setComponentPrototypes(sandboxWindow.localTangoComponentPrototypes); } } }} bundlerURL="http://10.20.62.16:8000" navigatorExtra={<Button size="small">hello world</Button>} />
四、出现问题: 浏览器访问http://10.20.62.16:8001/,能够显示下面界面,选中中间区域的内容,不会有操作菜单及右边的属性面板出现 不过f12可以看到存在下面错误(下面的错误在demo页面同样存在):
各位大佬,是否有过本地成功运行的经历,还请不吝赐教,拜谢!
The text was updated successfully, but these errors were encountered:
修改apps\playground.umirc.ts,注释了下面代码以避免https访问
设计器与沙箱必须运行在 HTTPS 环境下,这是 Chrome 的安全策略限制,具体参见 沙箱接入常见问题。
Sorry, something went wrong.
如果想本地调试,增加本地组件好像有点不太方便,建议怎么调试呢
No branches or pull requests
一、我分别克隆了下面代码到本地:
二、先使用node 16的环境,在codesandbox-client根目录,执行:
然后进入www目录执行:
python -m http.server
启动了8000端口的本地沙箱,访问地址:http://10.20.62.16:8000
三、切换至node 18环境,在tango目录下
apps\playground\.umirc.ts
,注释了下面代码以避免https访问apps\playground\package.json
文件apps\playground\src\pages\index.tsx
四、出现问题:
浏览器访问http://10.20.62.16:8001/,能够显示下面界面,选中中间区域的内容,不会有操作菜单及右边的属性面板出现
不过f12可以看到存在下面错误(下面的错误在demo页面同样存在):
各位大佬,是否有过本地成功运行的经历,还请不吝赐教,拜谢!
The text was updated successfully, but these errors were encountered: