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

yarn test, yarn start Not Work #97

Open
callor opened this issue Aug 3, 2023 · 3 comments
Open

yarn test, yarn start Not Work #97

callor opened this issue Aug 3, 2023 · 3 comments

Comments

@callor
Copy link

callor commented Aug 3, 2023

Hello Dear

I am learning https://storybook.js.org/tutorials/intro-to-storybook/react/en/get-started/

Among the contents of learning, yarn start and yarn run* are not executed.
I can't find any related scripts anywhere in package.json.

intro-storybook-react-template
leanstorybook-code

Thank you

@jonniebigodes
Copy link
Collaborator

Hey @callor thanks for taking the time to reach out to us with your issue. We appreciate it 🙏 ! If you're ok can you provide a bit more context on what you're experiencing and information about your environment (OS, package manager) so that we can take a look at it and if required adjust both the tutorial and template?

Looking forward to hearing from you.

Hope you have a fantastic weekend.

Stay safe

@callor
Copy link
Author

callor commented Nov 2, 2023

Thank you
In a Windows 11 environment, I am using the npm package manager. The npm version is 10.2.1.

@x24ken
Copy link

x24ken commented Nov 23, 2023

Why are the test and start scripts missing from the scripts section of the package.json file? The current scripts are as follows:

json
Copy code
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"init-msw": "msw init public/"
}
Without these scripts, I am unable to execute commands like yarn test --watchAll or yarn start, which are typically used in React projects. Could you explain why these particular scripts are not included in this template and how I should proceed to run tests and start the application?

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

No branches or pull requests

3 participants