諸行無常

IT色々お勉強中のブログ

2019-04-01から1ヶ月間の記事一覧

ag インストール使い方

brew install ag 探したくない奴はここに書く ~/.agignore log オプション -G 正規表現 --hidden 隠しファイルも -i, --ignore-case 大文字小文字の違いを無視 -s, --case-sensitive 大文字小文字の違いを考慮する その他オプション qiita.com

fzfを使う

gitで取得 git clone https://github.com/junegunn/fzf.git ~/.fzf インストール ~/.fzf/install bashにこれ書き込む [ -f ~/.fzf.bash ] && source ~/.fzf.bash

recat-native link とはなんなのか

recat-native link jsだけは実現できないos毎に分けて記述された、objective-cやjavaのコードを自動で設定してくれる便利コマンドらしい Javascript オンリーのモジュールを利用する場合には link は不要だけど、NativeCode を利用する場合には必要 XCode / …

Parsing error: Unexpected tokenで困ってる

yarn add -D eslint eslint-plugin-vue yarn remove eslint-plugin-html module.exports = { root: true, - parser: 'babel-eslint', parserOptions: { + parser: 'babel-eslint', sourceType: 'module' }, env: { browser: true, }, - // https://github.co…

babel-loader 'bindings' of nullエラー

Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: Cannot read property 'bindings' of null at Scope.moveBindingTo (/usr/local/hoge/node_modules/@babel/traverse/lib/scope/index.js:864:13) TypeError: Cannot read …

webpack3→4でエラーになった babel-core

babel-coreが読み込めないらしい Error: Cannot find module '@babel/core' babel-loader@8 requires Babel 7.x (the package '@babel/core'). If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'. yarn upgrade babel-co…

webpack3→4でエラーになった Chunk

Chunk.jsでエラー 10% building 3/3 modules 0 active(node:135) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead ℹ 「wds」: Project is running at http://0.0.0.0:3035/ ℹ 「wds」: webpack output is served from /pack…

webpack3→4でエラーになった loaders

webpack3→4でエラーになった ✖ 「wds」: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.module has an unknown property 'loaders'. These properties are …

webpack3→4でエラーになった webpack-cli

webpack3→4に帰るとエラーになった。 The CLI moved into a separate package: webpack-cli Please install 'webpack-cli' in addition to webpack itself to use the CLI -> When using npm: npm i -D webpack-cli -> When using yarn: yarn add -D webpack…

20190421ワイの .bashrc

HISTSIZE=50000 alias ll='ls -la' alias vi='vim' alias dock='docker-compose' alias ctags="`brew --prefix`/bin/ctags" alias xl='cd ~/Xleap' source /usr/local/etc/bash_completion.d/git-prompt.sh source /usr/local/etc/bash_completion.d/git-com…

React Native I18n.localeがenしか取得できない

I18n.localeがenしか取得できないケースがあるらしい Both in android and ios locale always returns 'en' · Issue #7 · xcarpentier/ex-react-native-i18n · GitHub I18n.initAsync()をして上げると解決する import I18n from 'ex-react-native-i18n' comp…

Rail5.2.3アップグレードでArgumentError: wrong number of argumentsエラー発生

Rspec流して出たエラーはこれ from /hogehoge/gems/will_paginate-3.1.6/lib/will_paginate/active_record.rb:140:in `select_for_count'``` will_paginateでエラー出てるっぽいから、PR調べてると、それっぽいの発見 ArgumentError: wrong number of argume…

ReactNative初めてのお勉強

children 子に要素を出すことができる {children} こんな感じで エミュレーター上でcmd + D でデバックモードとか設定出来る Reducer にアクションを通知する関数dispatch dispatchでSagaを呼び出してstateを変えている? export default connect(mapStateTo…

nodeのバージョンを上げる方法

nodeのバージョンを上げる方法 nをインストールして上げる npm install -g n n --stable sudo n stable yarn install

複数Githubアカウントでssh接続設定(config)を使い分ける手順

cd ~/.ssh ssh-keygen -t rsa -C {Githubメールアドレス} -f {作成する鍵の名前} Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: vim ~/.ssh/config Host github.sub # サブアカウント…

brew install yarn --without-node オプションが使えなくなった

brew install yarn --without-nodeオプションを付けると動かない $ brew install yarn --without-node Updating Homebrew... ==> Auto-updated Homebrew! Error: invalid option: --without-node こないな感じでそんなオプションありまへんでって言われる gi…

npm install --globalに失敗した場合の対応方法

npm install --global babel-cli npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: …