Middlemanにて新規プロジェクトを作成した後、buildをしようとしたらエラーが出て、CSSファイルが出力できなくなりました。実はこの直前にも何故かCSSが作成できなくなったため、Middlemanを再インストールをいたしました。それでもプロパティーが読めないと同じエラーが出ます。理由がわかる方がおられましたら御教授お願いいたします。
2021年11月01日(月)午前8時50分追記
nodeのアンインストールで問題の解消はしました。コメントが来ないようならひとまず自己解決といたします。
MacBook MMsite % middleman build TypeError: Cannot read properties of undefined (reading 'version') error build/stylesheets/site.css # 文字数制限のため中略 There were errors during this build, re-run with `middleman build --verbose` to see the full exception. MacBook MMsite % middleman build --verbose # 中略 == Prerendering CSS == Request: /stylesheets/site.css == Finishing Request: stylesheets/site.css (0.0s) TypeError: Cannot read properties of undefined (reading 'version') error build/stylesheets/site.css TypeError: Cannot read properties of undefined (reading 'version') eval (eval at <anonymous> ((execjs):1:213), <anonymous>:1:10) (execjs):1:213 (execjs):19:14 (execjs):1:40 Object.<anonymous> ((execjs):1:58) Module._compile (node:internal/modules/cjs/loader:1095:14) Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10) Module.load (node:internal/modules/cjs/loader:975:32) Function.Module._load (node:internal/modules/cjs/loader:822:12) Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/execjs-2.8.1/lib/execjs/external_runtime.rb:39:in `exec' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/execjs-2.8.1/lib/execjs/external_runtime.rb:21:in `eval' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/execjs-2.8.1/lib/execjs/runtime.rb:64:in `eval' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/autoprefixer-rails-9.8.6.5/lib/autoprefixer-rails/processor.rb:170:in `runtime' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/autoprefixer-rails-9.8.6.5/lib/autoprefixer-rails/processor.rb:53:in `process' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:83:in `prefix' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:74:in `process' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:60:in `call' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/lint.rb:50:in `_call' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/lint.rb:38:in `call' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/builder.rb:244:in `call' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/mock.rb:84:in `request' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/mock.rb:57:in `get' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/builder.rb:232:in `block in output_resource' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/util.rb:21:in `instrument' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/builder.rb:225:in `output_resource' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:515:in `call_with_index' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:485:in `process_incoming_jobs' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:465:in `block in worker' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:456:in `fork' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:456:in `worker' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:447:in `block in create_workers' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:446:in `each' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:446:in `each_with_index' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:446:in `create_workers' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:386:in `work_in_processes' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/parallel-1.21.0/lib/parallel.rb:289:in `map' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/builder.rb:137:in `output_resources' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/builder.rb:97:in `block in prerender_css' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/util.rb:21:in `instrument' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/builder.rb:95:in `prerender_css' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/builder.rb:65:in `block in run!' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/util.rb:21:in `instrument' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/builder.rb:64:in `run!' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-cli-4.4.0/lib/middleman-cli/build.rb:84:in `block in build' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-core-4.4.0/lib/middleman-core/util.rb:21:in `instrument' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-cli-4.4.0/lib/middleman-cli/build.rb:83:in `build' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `block in invoke_all' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `each' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `map' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `invoke_all' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/group.rb:232:in `dispatch' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:116:in `invoke' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor.rb:40:in `block in register' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start' /Users/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/middleman-cli-4.4.0/bin/middleman:70:in `<top (required)>' /Users/user/.rbenv/versions/3.0.2/bin/middleman:23:in `load' /Users/user/.rbenv/versions/3.0.2/bin/middleman:23:in `<main>' == Building files # 中略 There were errors during this build
環境
Bundler version 2.2.22 ruby 3.0.2p107 [arm64-darwin20] rbenv 3.0.2 (set by /Users/user/.rbenv/version)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。