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
Whenever trying to launch an upward-js server using the command npx upward-js-server I get an error saying the following:
Error: upwardPath is required
at createUpwardServer (/home/pwa/node_modules/@magento/upward-js/lib/createUpwardServer.js:47:15)
at Object.<anonymous> (/home/pwa/node_modules/@magento/upward-js/bin/server:5:40)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47
I have already provided the required environment variables in the .env file UPWARD_JS_UPWARD_PATH=dist/upward.yml UPWARD_JS_BIND_LOCAL=true
To reproduce
Steps to reproduce the behavior:
Create a sample pwa project
Setup upward-js variables in the .env file
Launch the upward-js server using the command npx upward-js-server
Error saying upwardPath is required will show up.
Expected behavior
I expect the upward js server to launch given that the env variables are provided.
Screenshots
If applicable, add screenshots to help explain your problem.
Possible solutions
I did try to debug the issue and check that .env variables set in the file are being read.
In the file /bin/server I added a console.log(config); and this was the output:
Hi @zeina99. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Describe the bug
Whenever trying to launch an upward-js server using the command
npx upward-js-server
I get an error saying the following:I have already provided the required environment variables in the
.env
fileUPWARD_JS_UPWARD_PATH=dist/upward.yml
UPWARD_JS_BIND_LOCAL=true
To reproduce
Steps to reproduce the behavior:
npx upward-js-server
Expected behavior
I expect the upward js server to launch given that the env variables are provided.
Screenshots
If applicable, add screenshots to help explain your problem.
Possible solutions
I did try to debug the issue and check that .env variables set in the file are being read.
In the file
/bin/server
I added aconsole.log(config);
and this was the output:And this is not the input
createUpwardServer()
expects increateUpwardServer.js
After manually editing the config object to be
Running
npx upward-js-server
worked!Debug Report
Please complete the following device information:
Please let us know what packages this bug is in regards to:
venia-concept
venia-ui
pwa-buildpack
peregrine
pwa-devdocs
upward-js
upward-spec
create-pwa
The text was updated successfully, but these errors were encountered: