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

[Bug]: TypeError: Invalid version. Must be a string. Got type "undefined". #23823

Closed
GuYun-D opened this issue Aug 13, 2023 · 8 comments
Closed

Comments

@GuYun-D
Copy link

GuYun-D commented Aug 13, 2023

Describe the bug

When I initialize storybook in a React project,it always tells me that obtaining the version number is undefined

To Reproduce

No response

System

Environment Info:

  System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
  Binaries:
    Node: 16.18.0 - D:\software\nvm\node.EXE
    Yarn: 1.22.19 - D:\software\nvm\yarn.CMD
    npm: 8.19.2 - D:\software\nvm\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (115.0.1901.203)

Additional context

{
"name": "demo",
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.40",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@types/react-transition-group": "^4.4.6",
"classnames": "^2.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"react-transition-group": "^4.4.5",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/preset-typescript": "^7.22.5",
"sass": "^1.65.1"
}
}

@vanessayuenn
Copy link
Contributor

Hi, thanks for reporting this. do you have a reproduction repo you can share? If not, can you create one (see how to create a repro). We prioritize bug reports that have reproduction. Thank you! 🙏

@leon846666
Copy link

I met the same problem , my project was init by create-react-app template typescript.

"typescript": "^4.9.5",
"@storybook/react": "^7.3.0",

@leon846666
Copy link

solved the issue by downgrading to 7.1.0

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

Hi there! Thank you for opening this issue, but it has been marked as stale because we need more information to move forward. Could you please provide us with the requested reproduction or additional information that could help us better understand the problem? We'd love to resolve this issue, but we can't do it without your help!

@github-actions github-actions bot added the Stale label Sep 8, 2023
@yannbf
Copy link
Member

yannbf commented Sep 8, 2023

Hey @leon846666 @GuYun-D I'd really love to see how to reproduce this issue, please share more info if you can.
@GuYun-D I tried your exact package.json and storybook init ran successfully :/

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2023

Hi there! Thank you for opening this issue, but it has been marked as stale because we need more information to move forward. Could you please provide us with the requested reproduction or additional information that could help us better understand the problem? We'd love to resolve this issue, but we can't do it without your help!

@github-actions github-actions bot added the Stale label Oct 5, 2023
@github-actions
Copy link
Contributor

I'm afraid we need to close this issue for now, since we can't take any action without the requested reproduction or additional information. But please don't hesitate to open a new issue if the problem persists – we're always happy to help. Thanks so much for your understanding.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 13, 2023
@github-project-automation github-project-automation bot moved this from Waiting to Done in Core Team Projects Oct 13, 2023
@Absleepy
Copy link

Try restarting your mongo compass. And reconnect. It will fix the error.

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

No branches or pull requests

5 participants