问题描述
我正在尝试在 Windows 上启动 React 项目。我的同事在 Mac 上,他们可以在 package.json 中使用以下脚本运行项目
static string variant_1()
{
string str;
try
{
str = "grrr";
}
finally
{
}
return str; //no problem ?
}
static string variant_2()
{
string str;
try
{
str = "grrr";
}
catch (Exception ex)
{
}
return str; //does not compile: `CS0165: Use of unassigned local variable`
}
对于Windows,我将其更改为
"scripts": {
"start": "chmod +x ./env.sh && ./env.sh && cp env-config.js ./public/ && craco start","dev": "craco start","build": "craco build","test": "craco test","test-debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --watch","eject": "craco eject","styleguide": "styleguidist server","styleguide:build": "styleguidist build"
},
但我收到语法错误。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)