Hey guys.
I've created a custom plugin and now I would like to build a new image with the new plugin. For development I've installed my plugin by adding this to the package.json file:
"my-plugin": "file:./api-plugins/my-plugin",
And inside the plugins.json:
"my-plugin": "my-plugin"
But now how can I build a new image with my custom plugin?
Thanks
I've a question regarding the payment. As I understand the payment being done when submitting an order,
a plugin will executed according to the selected payment method, but what will be the flow when a user pays with paypal for example?
or some kind an external provider via iframe or any other scenario that you have to verify the payment before submitting the actual order?
Thanks
Hi,I am new to reaction commerce . I cloned reaction-commerce-development-platform and opened reaction admin in my IDE, when i runned npm run start:dev to start in developer mode a error arises,
Error msg:
Running command: meteor run --port 3000 --no-lint --no-release-check --raw-logs
'REACTION_METEOR_APP_COMMAND_START_TIME' is not recognized as an internal or external command,
operable program or batch file.
Error: Command failed: REACTION_METEOR_APP_COMMAND_START_TIME=1610541668868 meteor run --port 3000 --no-lint --no-release-check --raw-logs
at checkExecSyncError (child_process.js:616:11)
at Object.execSync (child_process.js:652:15)
at run (file:///E:/HAMRO%20PATRO(INTERN)/reaction-development-platform/reaction-admin/.reaction/scripts/run.mjs:21:18)
at file:///E:/HAMRO%20PATRO(INTERN)/reaction-development-platform/reaction-admin/.reaction/scripts/run.mjs:29:1
at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
at async Loader.import (internal/modules/esm/loader.js:166:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 20360,
stdout: null,
stderr: null
}
Error: App failed to start
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! reaction-admin@3.0.0-beta.11 start:dev: node --experimental-modules ./.reaction/scripts/run.mjs
npm ERR! Exit status 1
npm ERR! reaction-admin@3.0.0-beta.11 start:dev: node --experimental-modules ./.reaction/sc
ripts/run.mjs
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reaction-admin@3.0.0-beta.11 start:dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Omen\AppData\Roaming\npm-cache_logs\2021-01-13T12_41_09_082Z-debug.log
Hi everyone, I'm new to reaction commerce, i already installed the platform, below is my docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
284d648b7cf5 reactioncommerce/admin:3.0.0-beta.11 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:4080->4080/tcp, 0.0.0.0:9231->9229/tcp reaction-admin_reaction-admin_1
5ffc5f6f07aa reactioncommerce/identity:3.3.0 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:4100->4100/tcp reaction-identity_identity_1
904c1c7f0228 reactioncommerce/reaction:3.11.0 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:3000->3000/tcp reaction_api_1
5ccd507da76a mongo:4.2.0 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:27017->27017/tcp reaction_mongo_1
dd79845d5913 oryd/hydra:v1.0.8 "hydra serve all --d…" 2 hours ago Up 2 hours 0.0.0.0:4444-4445->4444-4445/tcp, 0.0.0.0:5555->5555/tcp reaction-hydra_hydra_1
bdcc61055038 postgres:10.3 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:49162->5432/tcp reaction-hydra_postgres_1
i followed the instruction on example-storefront, and tried to "yarn start:dev" it, i got:
yarn run v1.22.5
$ yarn run create-hydra-client && NODE_ENV=development next dev -p 4000
Missing environment variables:
CANONICAL_URL: undefined
BUILD_GRAPHQL_URL: undefined
EXTERNAL_GRAPHQL_URL: undefined
INTERNAL_GRAPHQL_URL: undefined
OAUTH2_ADMIN_URL: undefined
OAUTH2_AUTH_URL: undefined
OAUTH2_CLIENT_ID: undefined
OAUTH2_CLIENT_SECRET: undefined
OAUTH2_IDP_PUBLIC_CHANGE_PASSWORD_URL: undefined
OAUTH2_IDP_HOST_URL: undefined
OAUTH2_PUBLIC_LOGOUT_URL: undefined
OAUTH2_TOKEN_URL: undefined
SESSION_SECRET: undefined
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
so i configured the file "config.js" and fix line 49, i tried: doEnvPath: ".env.example" , then : doEnvPath: ".env". Both return me:
yarn run v1.22.5
$ yarn run create-hydra-client && NODE_ENV=development next dev -p 4000
$ node createHydraClientIfNecessary.js
(node:14996) UnhandledPromiseRejectionWarning: FetchError: request to http://hydra.reaction.localhost:4445/clients/example-storefront failed, reason: getaddrinfo ENOTFOUND hydra.reaction.localhost
at ClientRequest.<anonymous> (D:\Project\tla-fashion-product\reaction-development-platform\example-storefront\node_modules\isomorphic-unfetch\node_modules\node-fetch\lib\index.js:1461:11)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(Use node --trace-warnings ...
to show where the warning was created)
(node:14996) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which
was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:14996) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate t
customPublishedProductFields
is wrong. The docs should be updated. publishedProductFields
and publishedProductVariantFields
should be under the catalog
key. customPublishedProductFields
is declared local to the file and exported. The variables you need to declare on catalog to be pushed to that array are in Line 11. See https://github.com/reactioncommerce/api-plugin-catalogs/blob/16fd5c1d54f1aa019fefebcf46e694fe3b276151/src/registration.js#L11.
Hey @thanhthao150. What’s your setup? Can you tell me a bit more about the context here? Which OS are you running on? Did you use
reaction-development-platform
and runmake
, or did you set it up another way?
yes, i use "reaction-development-platform" on Window and "make" by Git Bash, i followed this instruction: https://docs.reactioncommerce.com/docs/installation-reaction-platform
@thanhthao150 The set-up on Windows isn’t as straightforward as that, unfortunately. If you run Docker inside WSL, however, it should make your life easier. Have you tried that?
i got same error when running in wsl
Looks like something’s already using port 4000
omg, thank you, i got the error now, the steps i followed in "Example Storefront" still hold the localhost:4000 so i have to remove it. I also did the same current solution in Window and still got error, i guess Ubuntu does make my life easier