You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First when I use yarn dev, he returns: yarn run v1.22.5 error Couldn't find a package.json file in "/home/huge/Projetos" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When I use yarn start, he returns: yarn run v1.22.5 error Couldn't find a package.json file in "/home/huge/Projetos" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
To Reproduce
Execute create-next-app with npm or Yarn to bootstrap the example: npx create-next-app --example with-electron-typescript with-electron-typescript-app
or
yarn create next-app --example with-electron-typescript with-electron-typescript-app
2.Execute yarn dev or yarn start
Expected behavior
The program should run normally.
Screenshots
System information
OS: Pop!_OS 20.10 x86_64
Version of Next.js: v10.0
Version of Node.js: v14.15.0
Additional context
I tried on elementary OS also the error happened the same way, and as much as npm or yarn gave the same result.
The text was updated successfully, but these errors were encountered:
The previous version of this example didn't have a dev script;
All the code into the electron-src folder are typescript. So, to be able to get the file main/index.js you need first to transpile it to js running build-electron.
I send a PR adding it in a single command (dev) and fixing another issue that you probably would get with react v16.
- Changed script `start` to `dev` and improved it #18934 adding commando to transpile electron code;
- Added some folders into `.gitignore`;
- Updated react to avoid issues as #18916Fixes#18934
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 29, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
The electron example
https://github.com/vercel/next.js/tree/canary/examples/with-electron-typescript
First when I use yarn dev, he returns:
yarn run v1.22.5 error Couldn't find a package.json file in "/home/huge/Projetos" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When I use yarn start, he returns:
yarn run v1.22.5 error Couldn't find a package.json file in "/home/huge/Projetos" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
To Reproduce
npx create-next-app --example with-electron-typescript with-electron-typescript-app
or
yarn create next-app --example with-electron-typescript with-electron-typescript-app
2.Execute
yarn dev
oryarn start
Expected behavior
The program should run normally.
Screenshots
System information
Additional context
I tried on elementary OS also the error happened the same way, and as much as npm or yarn gave the same result.
The text was updated successfully, but these errors were encountered: