4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Storybook】typescript_1.default.createIdentifier is not a function エラーの解決方法

Last updated at Posted at 2023-03-21

typescript_1.default.createIdentifier is not a function エラーの解決方法

現在ReactのStorybook 6.5.16を使用!
Typescriptをバージョン5.0.2にアップグレードした後、storybookを起動すると、以下のエラーが発生しました。

typescript_1.default.createIdentifier is not a function

解決策

package.jsonの変更

package.jsonに以下の2点を書き加えることでエラーの解消ができる。

  "scripts": {
    "build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook"
  }

  "resolutions": {
    "@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.cd77847.0"
  }

package.jsonに書き加えることでエラーの解消ができる。
私は、上の2点を書き加えnode_moduleを削除後、yarn installを行い、runすると治りました。

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?