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
I use monorepo in following project directory: Users/user/git/my-project/packages/@myscope/packages-{a,b,c}
And, my cra-template package lay on @myscope's sub-directory.
I think else if (installPackage.match(/^file:/)) this condition must be above else if (installPackage.match(/.+@/))
Did you try recovering your dependencies?
N/A
Which terms did you search for in User Guide?
N/A
Environment
Environment Info:
current version of create-react-app: 3.4.1
running from /Users/user/.nvm/versions/node/v12.18.2/lib/node_modules/create-react-app
System:
OS: macOS 10.15.6
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Binaries:
Node: 12.18.2 - ~/.nvm/versions/node/v12.18.2/bin/node
Yarn: 1.22.4 - ~/.nvm/versions/node/v12.18.2/bin/yarn
npm: 6.14.5 - ~/.nvm/versions/node/v12.18.2/bin/npm
Browsers:
Chrome: Not Found
Firefox: Not Found
Safari: 13.1.2
npmPackages:
react: Not Found
react-dom: Not Found
react-scripts: Not Found
npmGlobalPackages:
create-react-app: 3.4.1
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
I found this issue falling into same code path as @norux. I use @context dirs often (e.g.; ~/workspaces/{@work,@play}) freely. The templateInfo path/version doesn't get parsed correctly if contains @
Describe the bug
I use monorepo in following project directory:
Users/user/git/my-project/packages/@myscope/packages-{a,b,c}
And, my cra-template package lay on
@myscope
's sub-directory.If I try,
$ create-react-app my-app --template "file:Users/user/git/my-project/packages/@myscope/cra-template-mine"
Receive error
Cannot find module: file:Users/user/git/my-project/packages
fromreact-scripts
I found following:
create-react-app/packages/create-react-app/createReactApp.js
Lines 708 to 721 in 759696d
I think
else if (installPackage.match(/^file:/))
this condition must be aboveelse if (installPackage.match(/.+@/))
Did you try recovering your dependencies?
N/A
Which terms did you search for in User Guide?
N/A
Environment
Steps to reproduce
test custom template in local to use
file:
$ create-react-app my-app --template "file:Users/user/git/my-project/packages/@myscope/cra-template-mine"
Expected behavior
Get package name & version from
Users/user/git/my-project/packages/@myscope/cra-template-mine/package.json
Actual behavior
package name: Users/user/git/my-project/packages
package version: myscope/cra-template-mine
Reproducible demo
The text was updated successfully, but these errors were encountered: