ayush-AI

yarn start error when using with backend url

Mar 13th, 2023
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.07 KB | None | 0 0
  1. yarn start --backend http://localhost/openmrs/
  2. [openmrs] Loading dynamic import map ...
  3. [openmrs] Looking in directory "D:\open-source\O3\openmrs-esm-patient-management" ...        
  4. [openmrs] No "webpack.config.json" found in directory "D:\open-source\O3\openmrs-esm-patient-management". Trying to use default config ...
  5. cli.js develop
  6.  
  7. Starts a new frontend module development session with the OpenMRS app shell.
  8.  
  9. Options:
  10.   --version              Show version number                           [boolean]
  11.   --help                 Show help                                     [boolean]
  12.   --port                 The port where the dev server should run.
  13.                                                         [number] [default: 8080]
  14.   --host                 The host name or IP for the server to use.
  15.                                                  [number] [default: "localhost"]
  16.   --backend              The backend to proxy API requests to.
  17.                                  [string] [default: "https://dev3.openmrs.org/"]
  18.   --add-cookie           Additional cookies to provide when proxying.
  19.                                                           [string] [default: ""]
  20.   --spa-path             The path of the application on the target server.
  21.                                              [string] [default: "/openmrs/spa/"]
  22.   --api-url              The URL of the API. Can be a path if the API is on the
  23.                          same target server.     [string] [default: "/openmrs/"]
  24.   --open                 Immediately opens the SPA page URL in the browser.
  25.                                                        [boolean] [default: true]
  26.   --config-url           The URL to a valid frontend configuration. Can be used
  27.                          multiple times.                   [array] [default: []]
  28.   --sources              Runs the projects from the provided source directories.
  29.                          Can be used multiple times.    [array] [default: ["."]]
  30.   --shared-dependencies  The additional shared dependencies besides the ones
  31.                          from the app shell.               [array] [default: []]
  32.   --importmap            The import map to use. Can be a path to a valid import
  33.                          map to be taken literally, an URL, or a fixed JSON
  34.                          object.            [string] [default: "importmap.json"]
  35.  
  36. TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
  37.     at validateString (internal/validators.js:124:11)
  38.     at basename (path.js:743:5)
  39.     at getMainBundle (D:\open-source\O3\openmrs-esm-patient-management\node_modules\openmrs\dist\utils\dependencies.js:13:35)
  40.     at runProjectWebpack (D:\open-source\O3\openmrs-esm-patient-management\node_modules\openmrs\dist\utils\importmap.js:93:53)
  41.     at D:\open-source\O3\openmrs-esm-patient-management\node_modules\openmrs\dist\utils\importmap.js:131:17
  42.     at Generator.next (<anonymous>)
  43.     at fulfilled (D:\open-source\O3\openmrs-esm-patient-management\node_modules\openmrs\dist\utils\importmap.js:5:58) {
  44.   code: 'ERR_INVALID_ARG_TYPE'
  45. }
Advertisement
Add Comment
Please, Sign In to add comment