npm
发包失败,直接报错:
|
npm
发包失败,直接报错:
|
react-native pod install 失败问题汇总
0.76.3
报错 …这个具体的报错信息没给,参考
https://github.com/facebook/react-native/issues/34189
Debugging this issue on my M1 mac, I discovered that I had
never set my git config to use the correct line endings for *nix on macOS.UPDATE: I had actually forgotten to unset them after working with a repo with Windows line endings. This means they were set togit config --global core.autocrlf true
which is the setting for windows.
This is the correct setting for linux/mac.
|
You can also unset
them and use the default which is false
|
After this, you will need to normalize all the line endings in the project (unless you want to re-clone).
https://stackoverflow.com/a/13154031
After you have done the configuration, you might want git to normalize all the files in the repo. To do this, go to to the root of your repo and run these commands:
|
If you now want git to also normalize the files in your working directory, run these commands:
|
There are some .bat
files for windows that you will not want to change, so discard those.
Once you have done these steps, you shouldn’t need any of the custom workarounds in this thread.
Originally posted by @shwanton in https://github.com/facebook/react-native/issues/34189#issuecomment-1502532287
如果想修改已经推送到远程的 Git 提交信息,可以使用 git rebase 和 git commit –amend 来更改提交历史。修改已经推送的提交信息是有风险的,特别是如果其他人已经拉取了你的提交历史。修改历史后,可能会导致他们的工作分叉,因此在多人协作时要小心使用。
我就想问问,中国程序员去日本当程序员容易吗?
Vue
里面很有多蛋疼的地方,比如提交表单的时候,移动端和桌面端是两套 UI,但是操作的逻辑是一样的。尤其是比如表单是分步骤的,还得处理多个步骤,所以说得把业务封装成hooks
,两个端都能复用。
比较蛋疼的地方:
多个hooks
如何修改同一份store
hooks
如何引用组件的props
hooks
如何调用组件的emits
之前总结过,没解决根本问题,还是没有找到本地的什么配置,导致了 index.tsx 被忽略 …
最近电脑莫名其妙抽风了,新建什么文件都行,唯独index.tsx
,死活检测不到文件变化,每次都要手动执行:
|
我 TM 心态都要爆炸了 …