Prompt error deploying or retrieving source when vscode pulls the code
When sfdx: retrieve this source from org is executed, the following information is prompted:
Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn’t in a package directory that’s specified in your sfdx-project.json file. Add this location to your “packageDirectories” value
resolvent
Open the sfdx project. JSON
configuration file (in the root directory or Ctrl + P search)
Add the following elements to the "packagedirectories"
attribute array of the configuration file:
{
"path": "XXX",
"default": false
}
Note that path is the directory (root directory) where the file you want to pull is located. For example, the root directory of your file is called “functional”, and XXX here will fill in functional
.
Save after adding, and then pull the file again.
Read More:
- Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map
- Google payment error prompt: error retrieving information from server [df-aa-20]
- Video JS can’t play the prompt( CODE:4 MEDIA_ ERR_ SRC_ NOT_ SUPPORTED) No compatible source was found for this video.
- Compiling the pi_kernel source code appears: fatal error: openssl/opensslv.h: No such file or directory
- Vscode code block / full text collapse / expand shortcut
- Vs error prompt: “unable to open source file XXXX. H” possible reasons and Solutions
- Vscode automatically formats the code when an error is reported
- Compile QT source code error causes and Solutions
- Error message error response from daemon: RPC error: code = unavailable when deploying swarm cluster. Solution:
- Vscode configuration connection server docker write code
- Why interview requires reading the source code
- Configure eslint in vscode to automatically repair and save the code
- Vs2015 compiling ffmpeg source code
- Configuration file for vscode setting.json UI interface or JSON form
- java.math.BigInteger Source code
- Source code analysis of macOS startup process
- Eclipse Syntax error, annotations are only available if source level is 1.5 or greater
- Bitcoin source code analysis – load Wallet
- Typescript generic source code error
- Action RPG demo source code (VC + OpenGL)