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
Components created using registry devfile and starter project should be pushed without error and modification in source code.
nodejs react component is not starting after pushing it to the cluster.
To Reproduce:
Create component using nodejs react devfile
Push it to cluster
Open route in browser
url is not accessible
Expected behavior
should open starter project index page.
Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable.
Last 20 lines of the component's log:
time="2022-07-14T01:15:28Z" level=info msg="try to start program" program=devrun
time="2022-07-14T01:15:28Z" level=info msg="success to start program" program=devrun
ODO_COMMAND_RUN is npm run start
Changing directory to ${PROJECT_SOURCE}
Executing command cd ${PROJECT_SOURCE} && npm run start
npm ERR! Missing script: "start"
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! npm star # Mark your favorite packages
npm ERR! npm stars # View packages marked as favorites
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! /opt/app-root/src/.npm/_logs/2022-07-14T01_15_28_333Z-debug-0.log
time="2022-07-14T01:15:29Z" level=debug msg="wait program exit" program=devrun
time="2022-07-14T01:15:29Z" level=error msg="program stopped with error:exit status 1" program=devrun
time="2022-07-14T01:15:29Z" level=info msg="Don't start the stopped program because its retry times 0 is greater than start retries 0" program=devrun
To get the full log output, please run 'odo log'
Pushing devfile component "nodejs-react-starter"
Additional context
Any workaround?
Rename 'dev' script to 'start' in package.json, or change start command in devfile to node start dev
Suggestion on how to fix the bug
The text was updated successfully, but these errors were encountered:
@dgolovin This was caused from me updating the react starter project so I could pass the tests on the registry. To my knowledge,, I don't think there is anyway around this because our tests in the registry require an up to date starter project which creates a temporary mismatch between the starter project and the devfile.
@schultzp2020 that sounds like right conclusion. @elsony just pointed out in chat that introduction of multiple stack versions support should address that, "but devfiles in the registry has not take advantage on that yet".
/kind bug
Which area this bug is related to?
What versions of software are you using?
Operating System: Linux
Go Pkg Version: n/a
Bug Summary
Describe the bug:
Components created using registry devfile and starter project should be pushed without error and modification in source code.
nodejs react component is not starting after pushing it to the cluster.
To Reproduce:
url is not accessible
Expected behavior
should open starter project index page.
Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable.
Additional context
Any workaround?
Rename 'dev' script to 'start' in package.json, or change start command in devfile to
node start dev
Suggestion on how to fix the bug
The text was updated successfully, but these errors were encountered: