Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve path to module '@storybook/addon-info' #8324

Closed
deleemillie opened this issue Oct 8, 2019 · 6 comments
Closed

Unable to resolve path to module '@storybook/addon-info' #8324

deleemillie opened this issue Oct 8, 2019 · 6 comments

Comments

@deleemillie
Copy link

deleemillie commented Oct 8, 2019

Describe the bug
We are using storybook ^5.2.1, and have found our builds to be recently failing with Unable to resolve path to module '@storybook/addon-info' with no changes. Happens locally and on the build server.

We recently upgraded storybook from v4 to v5, which was working before. The branches on the old v4 continue to build. All branches on v5 have started to fail with no changes.

The project does not use Typescript.

To Reproduce
Error happens during the build process when using import { withInfo } from '@storybook/addon-info';.

The error is also evident in the IDE with eslint, which resolves the path to a directory under AppData, whereas most of the other addons are shown to resolve to a directory under the project.

image

image

The \node_modules\@storybook\addon-info directory does exist under the project root, but the build process seems to be looking for it somewhere else.

System:

  System:
    OS: Windows 10
    CPU: (12) x64 Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz
  Binaries:
    Node: 10.16.3 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.17.3 - C:\Program Files\nodejs\yarn.CMD
    npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: 44.17763.1.0

Package.json dependencies are as follows:

  "dependencies": {
    "@babel/plugin-syntax-dynamic-import": "^7.2.0",
    "@rematch/core": "^1.0.5",
    "apollo-boost": "^0.1.16",
    "axios": "^0.18.0",
    "bfj": "6.1.1",
    "bignumber.js": "^8.1.1",
    "bootstrap-datepicker": "1.8.0",
    "case-sensitive-paths-webpack-plugin": "2.1.2",
    "chalk": "2.4.1",
    "classnames": "^2.2.6",
    "copy-webpack-plugin": "^5.0.4",
    "core-js": "^2.6.9",
    "dayjs": "^1.7.7",
    "dotenv": "6.0.0",
    "dotenv-expand": "4.2.0",
    "file-saver": "1.3.3",
    "flattenjs": "^1.0.4",
    "flow-bin": "^0.82.0",
    "flow-typed": "^2.5.1",
    "fs-extra": "7.0.0",
    "glob": "^7.1.4",
    "graphql": "^14.0.2",
    "graphql-tag": "^2.10.0",
    "he": "^1.2.0",
    "i18next": "^12.0.0",
    "i18next-browser-languagedetector": "^2.2.3",
    "i18next-xhr-backend": "^1.5.1",
    "identity-obj-proxy": "3.0.0",
    "inputmask": "3.3.5",
    "jquery": "2.2.4",
    "json-logic-js": "^1.2.2",
    "jsonapi-serializer": "3.5.6",
    "lodash": "^4.17.10",
    "moment": "^2.24.0",
    "node-sass-chokidar": "^1.3.4",
    "numeral": "^2.0.6",
    "prop-types": "^15.7.2",
    "react-albus": "^2.0.0",
    "react-apollo": "^2.2.4",
    "react-app-polyfill": "^0.1.3",
    "react-datetime": "^2.16.3",
    "react-helmet": "^5.2.0",
    "react-i18next": "^8.3.5",
    "react-loadable": "^5.5.0",
    "react-redux": "^5.0.7",
    "react-router-dom": "^4.3.1",
    "react-svg": "^7.2.0",
    "redux": "^4.0.1",
    "resolve": "1.8.1",
    "unstated": "^2.1.1",
    "webfontloader": "^1.6.28"
  },
  "devDependencies": {
    "@babel/cli": "^7.1.2",
    "@babel/core": "^7.1.2",
    "@babel/plugin-proposal-class-properties": "^7.1.0",
    "@babel/plugin-proposal-export-default-from": "^7.0.0",
    "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
    "@babel/preset-env": "^7.1.0",
    "@babel/preset-flow": "^7.0.0",
    "@babel/runtime": "^7.1.5",
    "@rematch/core": "^1.0.5",
    "@sambego/storybook-state": "^1.3.6",
    "@storybook/addon-actions": "^5.2.1",
    "@storybook/addon-console": "^1.2.1",
    "@storybook/addon-info": "^5.2.1",
    "@storybook/addon-knobs": "^5.2.1",
    "@storybook/addon-links": "^5.2.1",
    "@storybook/addon-notes": "^5.2.1",
    "@storybook/addon-storysource": "^5.2.1",
    "@storybook/addon-viewport": "^5.2.1",
    "@storybook/react": "^5.2.1",
    "@storybook/theming": "^5.2.1",
    "@svgr/webpack": "2.4.1",
    "axios-mock-adapter": "^1.16.0",
    "babel-core": "7.0.0-bridge.0",
    "babel-eslint": "9.0.0",
    "babel-jest": "23.6.0",
    "babel-loader": "8.0.4",
    "babel-plugin-named-asset-import": "^0.2.3",
    "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
    "babel-preset-react-app": "^6.1.0",
    "css-loader": "^1.0.0",
    "enzyme": "^3.7.0",
    "enzyme-adapter-react-16": "^1.6.0",
    "eslint": "5.6.0",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-config-react-app": "^3.0.5",
    "eslint-loader": "2.1.1",
    "eslint-plugin-flowtype": "2.50.1",
    "eslint-plugin-import": "2.14.0",
    "eslint-plugin-jest": "^22.0.1",
    "eslint-plugin-jsx-a11y": "6.1.2",
    "eslint-plugin-react": "7.11.1",
    "extract-text-webpack-plugin": "^4.0.0-beta.0",
    "file-loader": "2.0.0",
    "fork-ts-checker-webpack-plugin-alt": "0.4.14",
    "html-webpack-plugin": "4.0.0-alpha.2",
    "http-proxy-middleware": "^0.19.1",
    "jest": "23.6.0",
    "jest-pnp-resolver": "1.0.1",
    "jest-resolve": "23.6.0",
    "mini-css-extract-plugin": "^0.4.3",
    "node-sass": "^4.11.0",
    "npm-run-all": "^4.1.3",
    "optimize-css-assets-webpack-plugin": "5.0.1",
    "pnp-webpack-plugin": "1.1.0",
    "postcss-flexbugs-fixes": "^4.1.0",
    "postcss-loader": "^3.0.0",
    "postcss-preset-env": "^6.0.6",
    "postcss-safe-parser": "4.0.1",
    "react": "^16.6.3",
    "react-dev-utils": "^6.1.1",
    "react-dom": "^16.6.3",
    "react-styleguidist": "^8.0.6",
    "redux-mock-store": "^1.5.3",
    "sass-loader": "^7.1.0",
    "storybook-addon-react-live-edit": "^2.0.4",
    "storybook-readme": "^5.0.8",
    "style-loader": "^0.23.0",
    "stylelint": "^9.6.0",
    "stylelint-order": "^1.0.0",
    "stylelint-webpack-plugin": "^0.10.5",
    "terser-webpack-plugin": "1.1.0",
    "ts-loader": "^5.3.3",
    "url-loader": "1.1.1",
    "webpack": "4.19.1",
    "webpack-dev-server": "^3.1.14",
    "webpack-manifest-plugin": "2.0.4"
  }
@deleemillie
Copy link
Author

I can confirm that the error occurs as of v5.2.2. When version locked to v5.2.1, everything still works as expected.

@nicolascava
Copy link

nicolascava commented Oct 17, 2019

I confirm as well with the v5.2.4. Downgrading to the v5.2.1 works as expected as @annaemu suggests.

@stale
Copy link

stale bot commented Nov 8, 2019

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Nov 8, 2019
@shilman
Copy link
Member

shilman commented Nov 8, 2019

Addon-info is being 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

@stale stale bot removed the inactive label Nov 8, 2019
@shilman
Copy link
Member

shilman commented Nov 9, 2019

Hurrah!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.0-alpha.42 containing PR #8764 that references this issue. Upgrade today to try it out!

You can find this prerelease on the @next NPM tag.

Closing this issue. Please re-open if you think there's still more to do.

@shilman shilman closed this as completed Nov 9, 2019
@shilman
Copy link
Member

shilman commented Nov 9, 2019

Whoopee!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.6 containing PR #8764 that references this issue. Upgrade today to try it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants