コレグレーデギネード

WindowsとかUbuntuとかRubyとかRailsとか

2024-02-01から1ヶ月間の記事一覧

rake aborted! 01 Sprockets::FileNotFound: couldn't find file 'trix/dist/trix' with type 'text/css'

app/assets/stylesheets/actiontext.scss //=-require trix/dist/trixの行を削除 // // Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and // the trix-editor content (whether displayed or under editing). …

Since uri is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports uri as a default gem. (Gem::LoadError)

Ubuntu 20.04だとエラーにならないのに22.04だとエラーが出てdeployできない。 rake stdout: Nothing written rake stderr: bundler: failed to load command: rake (/var/www/rails/shared/bundle/ruby/2.7.0/bin/rake) /usr/local/rbenv/versions/2.7.1/li…

Deployの際に01 ERROR in ./app/javascript/packs/application.js 01 Module build failed (from ./node_modules/babel-loader/lib/index.js): 01 Error: Cannot find package '@babel/plugin-proposal-private-methods' imported from

package.jsonとbabel.config.jsの下記proposalの部分をtransformに書き換え - @babel/plugin-proposal-private-methods + @babel/plugin-transform-private-methods - @babel/plugin-proposal-private-property-in-object + @babel/plugin-transform-private…

warning: Using the last argument as keyword parameters is deprecated

.bashrcに追記 export RUBYOPT='-W:no-deprecated'$ source ~/.bashrc

Error: error:0308010C:digital envelope routines::unsupported

config/environments/production.rb + ENV['NODE_OPTIONS'] = '--openssl-legacy-provider'

パッケージの取得元をftp.riken.jpに変更するコマンド

sudo perl -p -i.bak -e 's%(deb(?:-src|)\s+)https?://(?!archive\.canonical\.com|security\.ubuntu\.com)[^\s]+%$1http://ftp.riken.jp/Linux/ubuntu/%' /etc/apt/sources.list

rails webpaker:install error node_modules/node-sass: Command failed.

Gemfile内のwebpackerのバージョンを変更 Gemfile - gem 'webpacker', '~> 4.0' + gem 'webpacker', '~> 5.0'$ bundle installyarn.lockの削除package.json内のwebpackerのバージョンを変更 package.json - "@rails/webpacker": "4.3.0" + "@rails/webpacker…

github.com New repository

Create a new repository on the command line echo "# repository_name" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin git@github.com:[Owner]/[repository_name].git git push -u ori…