[wp-trac] [WordPress Trac] #57353: Regarding create-block for dynamic block

WordPress Trac noreply at wordpress.org
Mon Dec 19 10:29:27 UTC 2022


#57353: Regarding create-block for dynamic block
--------------------------+------------------------------
 Reporter:  mihopress     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => close
 * component:  General => Editor


Old description:

> こんにちは!私はブロックを作成するためにnpx @wordpress/create-block miho-
> dynamic --variant dynamicと入力しましたが、ターミナルは「エラー:不明なオ
> プション '--variant'」と表示します。 この問題に対する解決方法をご存知です
> か? ありがとうございます:).

New description:

 Hello! I want to create a block
 {{{
 npx @wordpress/create-block miho-dynamic --variant dynamic
 }}}
 to create a block, but the terminal says
 {{{
 Error: unknown option '--variant'
 }}}

 Do you know how to solve this problem? Thank you :).

 Original:
 > こんにちは!私はブロックを作成するためにnpx @wordpress/create-block
 miho-dynamic --variant dynamicと入力しましたが、ターミナルは「エラー:不明
 なオプション '--variant'」と表示します。 この問題に対する解決方法をご存知
 ですか? ありがとうございます:).

--

Comment:

 Hi and welcome to Trac!

 Help requests usually belong in the [https://wordpress.org/support/forum
 /how-to-and-troubleshooting/ Fixing WordPress support forum] (or you could
 use the equivalent [https://ja.wordpress.org/support/forum/how-to-and-
 troubleshooting/ Japanese forum]).

 The [https://developer.wordpress.org/block-editor/reference-
 guides/packages/packages-create-block/#variant create-block documentation
 page] indicates that it should work with a space. However, the
 [https://make.wordpress.org/core/2022/10/07/create-block-scaffolding-tool-
 updates/ developer note] uses an equal sign:
 {{{
 npx @wordpress/create-block custom-block --variant=dynamic
 }}}
 You may want to try that first.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57353#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list