You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.
mkdir test
cd test
cat > package.json <<EOF
{
"private": true,
"workspaces": [
"packages/*"
]
}
EOF
mkdir packages
cd packages
create-react-app my-site --scripts-version=react-scripts-ts
Expected Behaviour
New project skeleton is created successfully.
Actual Behavior
It aborts with:
Aborting installation.
Unexpected error. Please report it as a bug:
{ Error: Cannot find module '/private/tmp/zzz/packages/my-site/node_modules/react-scripts-ts/package.json'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at checkNodeVersion (/usr/local/lib/node_modules/create-react-app/createReactApp.js:488:23)
at getPackageName.then.then.then.packageName (/usr/local/lib/node_modules/create-react-app/createReactApp.js:295:7)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7) code: 'MODULE_NOT_FOUND' }
Deleting generated file... package.json
Deleting my-site / from /private/tmp/zzz/packages
Done.
Which makes sense, since with workspaces enabled yarn will install in ../../node_modules.
The text was updated successfully, but these errors were encountered:
@stephtr Thanks for pointing out the original issue.
@wichert Please follow the CRA issue, potential fixes will be merged here once they can be considered 'stable'. I'll close the issue here, since it's not CRA-ts specific.
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
No - this is specific to Yarn
Which terms did you search for in User Guide?
yarn workspace
Environment
node -v
: 9.3.0npm -v
: 5.6.0yarn --version
(if you use Yarn): 1.3.2npm ls react-scripts-ts
(if you haven’t ejected):Then, specify:
Steps to Reproduce
Expected Behaviour
New project skeleton is created successfully.
Actual Behavior
It aborts with:
Which makes sense, since with workspaces enabled yarn will install in
../../node_modules
.The text was updated successfully, but these errors were encountered: