Skip to content

preserve-symlinks proxy file incorrect location #443

@vjpr

Description

@vjpr

I am having an issue the preserve-symlink proxy file.

When using create-react-app:

Error: Cannot find module '../react-scripts/bin/react-scripts.js'
node_modules/react-scripts/bin/react-scripts.js
#!/bin/sh
":" //# comment; exec /usr/bin/env node --preserve-symlinks "$0" "$@"
require('../react-scripts/bin/react-scripts.js')

It should be: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/bin/react-scripts.js

This looks like a bug. The bin dir shouldn't be touched, only the top-level .bin.

pnpm version: 0.42.4

Code to reproduce the issue:

create-react-app
npm start

Expected behavior:

No errors when visiting localhost:3000.

Actual behavior:

Error: Cannot find module '../react-scripts/bin/react-scripts.js'

Additional information:

  • node -v prints: 6.5.0
  • Windows, OS X, or Linux?: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions