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
create-react-appis the standard way to start a React project now and pnpm does not work with it.The fix was added to
enhanced-resolverwebpack/webpack#2937 in v2.3.create-react-appuseswebpack@1.13.2which usesenhanced-resolve@~0.9.0".pnpm version: 0.42.4
Code to reproduce the issue:
Expected behavior:
App starts without errors.
Actual behavior:
Additional information:
node -vprints: 6.5.0