https://cypress.io logo
b
im new at cypress i colne 'cypress-newworld-app' and try to run it , when i hit 'yarn dev' this error happen 'C:\workspaces\cypress-realworld-app\node_modules\ts-node\src\index.ts:820 [start:api:watch] return new TSError(diagnosticText, diagnosticCodes);' (i attach screen shot). i use nvm version 1.1.11 and node 16.16.0 but i face same error.

https://cdn.discordapp.com/attachments/1099564026951893113/1099564027195183185/image.png

m
Hi @brainy-translator-85865 Which version of yarn are you using? It looks like you could be using Yarn Modern, not Yarn Classic. If I guessed right then try the following:
Copy code
yarn set version classic
yarn install
yarn dev
Edit: See also https://github.com/cypress-io/cypress-realworld-app/pull/1337 for proposed addition to README documentation.
b
@many-airline-45402 Hi
I have yarn version 3.1.1 i follow your instruction, and same error appear.

https://cdn.discordapp.com/attachments/1099564026951893113/1099988311931629568/image.png

https://cdn.discordapp.com/attachments/1099564026951893113/1099988312153915482/image.png

m
It will not work with Yarn 3. You need Yarn 1 (Classic).
You should be seeing this in your logs:
Copy code
$ yarn set version classic
➤ YN0000: Retrieving https://nightly.yarnpkg.com/latest.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-1.22.19.cjs
➤ YN0000: Done in 2s 293ms

$ yarn
yarn install v1.22.19
b
i can set yarn v1.22.19

https://cdn.discordapp.com/attachments/1099564026951893113/1100020448986660974/image.png

i cant set the version even i use
Copy code
yarn set version 1.22.19

https://cdn.discordapp.com/attachments/1099564026951893113/1100021396702244967/image.png

m
You may have Yarn 3 parts in your repository copy which prevent resetting to Yarn 1.
git status
may show what has been added. I suggest you reset the example repository or simply delete it and clone it again, then try again.
If you would like to try out an example repository which does not use `yarn`then you can use https://github.com/cypress-io/cypress-example-kitchensink instead. This only needs
npm
.
b
Thank you very much.