Skip to content

Running yarn dev to run development version fails on Windows #195

@roshan-sama

Description

@roshan-sama

What is the problem?

After forking and downloading the blitz repository on Windows, running the yarn command, running yarn dev causes the following error

PS C:\Users\Roshan\Documents\Blitz\blitz> yarn dev
yarn run v1.22.10
$ preconstruct dev && concurrently --names "typecheck,cli,templates" -c "blue,green,yellow,magenta" -p "{name}" "npm:dev:tsc" "npm:dev:cli" "npm:dev:templates"
��� info project is valid!
��� error [Error: EPERM: operation not permitted, symlink 'C:\Users\Roshan\Documents\Blitz\blitz\packages\babel-preset\src\index.ts' -> 'C:\Users\Roshan\Documents\Blitz\blitz\packages\babel-preset\dist\blitzjs-babel-pr
et.esm.js'] {
��� error   errno: -4048,
��� error   code: 'EPERM',
��� error   syscall: 'symlink',
��� error   path: 'C:\\Users\\Roshan\\Documents\\Blitz\\blitz\\packages\\babel-preset\\src\\index.ts',
��� error   dest: 'C:\\Users\\Roshan\\Documents\\Blitz\\blitz\\packages\\babel-preset\\dist\\blitzjs-babel-preset.esm.js'
��� error }
��� info If want to learn more about the above error, check https://preconstruct.tools/errors
��� info If the error is not there and you want to learn more about it, open an issue at https://github.com/preconstruct/preconstruct/issues/new
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

What are detailed steps to reproduce this?

  1. Forking and download the blitz repository at https://github.com/blitz-js/blitz
  2. Clone your fork onto a Windows machine
  3. Run the yarn command
  4. Run the yarn dev command

Run blitz -v and paste the output here:

Windows 10 | win32-x64 | Node: v15.8.0

blitz: 0.31.0 (global)
blitz: 0.31.0 (local)

  Package manager: npm
  System:
    OS: Windows 10 10.0.18363
    CPU: (16) x64 AMD Ryzen 7 2700 Eight-Core Processor
    Memory: 5.37 GB / 15.93 GB
  Binaries:
    Node: 15.8.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.6.0 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  npmPackages:
    @prisma/client: 2.17.0 => 2.17.0
    blitz: 0.31.0 => 0.31.0
    prisma: 2.17.0 => 2.17.0
    react: 0.0.0-experimental-3310209d0 => 0.0.0-experimental-3310209d0
    react-dom: 0.0.0-experimental-3310209d0 => 0.0.0-experimental-3310209d0
    typescript: 4.1.5 => 4.1.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions