Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#57353 closed defect (bug) (invalid)

Regarding create-block for dynamic block

Reported by: mihopress's profile mihopress Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords: close
Focuses: Cc:

Description (last modified by sabernhardt)

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'」と表示します。 この問題に対する解決方法をご存知ですか? ありがとうございます:).

Change History (4)

#1 @mihopress
2 years ago

Sorry! I submit my message in Japanese by mistake :0
What I wrote was here

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'".
option '--variant'".
Do you know how to solve this problem? Thank you:).

Last edited 2 years ago by mihopress (previous) (diff)

#2 follow-up: @sabernhardt
2 years ago

  • Component changed from General to Editor
  • Description modified (diff)
  • Keywords close added

Hi and welcome to Trac!

Help requests usually belong in the Fixing WordPress support forum (or you could use the equivalent Japanese forum).

The create-block documentation page indicates that it should work with a space. However, the developer note uses an equal sign:

npx @wordpress/create-block custom-block --variant=dynamic

You may want to try that first.

#3 in reply to: ↑ 2 @mihopress
2 years ago

Hi @sabernhardt! Thank you for your reply!
Actually, I've already tried this below

npx @wordpress/create-block custom-block --variant=dynamic

but, it didn't work.
I'm going to check your link :)
Thank you!

#4 @JeffPaul
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.