Skip to content

create-react-app doesn't work with pnpm #444

Description

@vjpr

create-react-app is the standard way to start a React project now and pnpm does not work with it.

The fix was added to enhanced-resolver webpack/webpack#2937 in v2.3. create-react-app uses webpack@1.13.2 which uses enhanced-resolve@~0.9.0".

pnpm version: 0.42.4

Code to reproduce the issue:

create-react-app foo
cd foo
rm -rf node_modules
pnpm install
npm start

Expected behavior:

App starts without errors.

Actual behavior:

Error in /Users/Vaughan/.pnpm/.store/nested/react-dom@15.3.2/_/index.js
Module not found: 'react/lib/ReactDOM' in /Users/Vaughan/.pnpm/.store/nested/react-dom@15.3.2/_

 @ /Users/Vaughan/.pnpm/.store/nested/react-dom@15.3.2/_/index.js 3:17-46

Additional information:

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    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