Storybook: Failed to load preset: "@storybook/addon-info" on level 1

Created on 29 Jul 2020  路  2Comments  路  Source: storybookjs/storybook

Failed to load preset: "@storybook/addon-info" on level 1
ERR! /Users/fdp/Desktop/fandepeng/NPM/@frid/fdp-ui/node_modules/@storybook/addon-info/dist/components/PropTable/style.css:1
ERR! .info-table {
ERR! ^
ERR!
ERR! SyntaxError: Unexpected token '.'
ERR! at wrapSafe (internal/modules/cjs/loader.js:1071:16)
ERR! at Module._compile (internal/modules/cjs/loader.js:1121:27)
ERR! at Object.Module._extensions..js (internal/modules/cjs/loader.js:1177:10)
ERR! at Module.load (internal/modules/cjs/loader.js:1001:32)
ERR! at Function.Module._load (internal/modules/cjs/loader.js:900:14)
ERR! at Module.require (internal/modules/cjs/loader.js:1043:19)
ERR! at require (internal/modules/cjs/helpers.js:77:18)
ERR! at Object. (/Users/fdp/Desktop/fandepeng/NPM/@frid/fdp-ui/node_modules/@storybook/addon-info/dist/components/PropTable/components/Table.js:12:1)
ERR! at Module._compile (internal/modules/cjs/loader.js:1157:30)
ERR! at Object.Module._extensions..js (internal/modules/cjs/loader.js:1177:10)
ERR! at Module.load (internal/modules/cjs/loader.js:1001:32)
ERR! at Function.Module._load (internal/modules/cjs/loader.js:900:14)
ERR! at Module.require (internal/modules/cjs/loader.js:1043:19)
ERR! at require (internal/modules/cjs/helpers.js:77:18)
ERR! at Object. (/Users/fdp/Desktop/fandepeng/NPM/@frid/fdp-ui/node_modules/@storybook/addon-info/dist/components/PropTable/index.js:37:37)
ERR! at Module._compile (internal/modules/cjs/loader.js:1157:30)

info question / support

Most helpful comment

addon-info is deprecated and has been superceded by addon-docs, which fixes a bunch of bugs and is easier to maintain. Please give it a try! https://medium.com/storybookjs/storybook-docspage-e185bc3622bf

https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-addon-info-addon-notes

All 2 comments

I have the same error!!!!

addon-info is deprecated and has been superceded by addon-docs, which fixes a bunch of bugs and is easier to maintain. Please give it a try! https://medium.com/storybookjs/storybook-docspage-e185bc3622bf

https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-addon-info-addon-notes

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dependencies[bot] picture dependencies[bot]  路  142Comments

dmmarmol picture dmmarmol  路  57Comments

tycho01 picture tycho01  路  76Comments

Gongreg picture Gongreg  路  58Comments

ChucKN0risK picture ChucKN0risK  路  74Comments