Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using docker-compose to run the program but can't get access to the localhost:4000 port #13

Open
brandfucker opened this issue Oct 13, 2023 · 1 comment

Comments

@brandfucker
Copy link

hi , I'm new to koa. After running docker-compose up -d --build under the koa-vue-notes-api-develop directory,the console's output is:
屏幕截图 2023-10-13 142126

However,after running the front-end part, when I tried to login:

屏幕截图 2023-10-13 153607

May be I didn't correctly understand the readme file ?

I don't know what happeded. So I gave up using docker,but try to just using npm to start the backend, however:

屏幕截图 2023-10-13 152550

I think it might be caused by the different version of nodejs?

I would be greatful if you can help me

@johndatserakis
Copy link
Owner

Hey @brandfucker - sorry I'm super busy right now so I can't do a deeper dive at the moment, but yes - this error is usually do to an older node version.

If I were you, I would delete the node_modules, use nvm to install a newer version of node (I use 18.14.2 often recently, for example), and then run yarn and go through startup the steps again.

Bottom line, that error means your node version doesn't support ESM. Should be a simple fix by upgrading. Let me know how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants