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

项目启动不了 #6

Open
janninaweigal opened this issue Jun 24, 2021 · 5 comments
Open

项目启动不了 #6

janninaweigal opened this issue Jun 24, 2021 · 5 comments

Comments

@janninaweigal
Copy link

react-if 插件,package.json 没有。(已添加依赖,解决了)
目前还有一个问题,为什么接口请求不了后端。以下配置是我改过了,用postman测试是可以出现结果。

const isProd = process.env.NODE_ENV === 'production'
const ipUrl = isProd ? 'http://localhost:7001/default/' : 'http://localhost:7001/default/' // 区分环境

由于接口没请求成功,导致会出现
image

@lululuting
Copy link
Owner

可能是因为定位接口挂了,导致没有发起天气数据的请求。 另外github上的代码有些古老了落后很多提交,今晚我再上传最新的。

@janninaweigal
Copy link
Author

谢谢。

@janninaweigal
Copy link
Author

挺哥,你更新完了,还是起不来,想哭啊。貌似package.json缺失依赖。
<For each="item" of= 语法识别不了

@lululuting
Copy link
Owner

丢了 这个babel-plugin-jsx-control-statements依赖,补上了

@janninaweigal
Copy link
Author

丢了 这个babel-plugin-jsx-control-statements依赖,补上了
谢谢挺哥,.babelrc 貌似还需要添加这个。现在项目可以起来了,感谢。
{
...
"plugins": ["jsx-control-statements"]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants