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

Fixed version in package.json for local environment #25

Open
deemount opened this issue Feb 9, 2025 · 0 comments
Open

Fixed version in package.json for local environment #25

deemount opened this issue Feb 9, 2025 · 0 comments

Comments

@deemount
Copy link

deemount commented Feb 9, 2025

I have tried a few ways to create an app locally and then deploy it via a Github repository. One variant that gives me a headache, for example, is Vite+Vanilla JS. I have therefore decided to use this template in order to make progress. But here, too, I encountered problems.

Description

  1. I ran git clone of the deployed app and switched to the local workspace of the repository (VSCode). I ran npm install to download the dependent modules. The download was canceled because “esbuild”: “^0.20.2” in the package.json was outdated. After I changed the value to the recommended version “esbuild”: “^0.23.1”, the modules could be downloaded (not without warnings, as they were also outdated/ deprecated).

  2. I tried to run the app locally with npm run dev, but failed, because the amplify_output.json is missed. I've got my amplify_outputs.json with the the command npx ampx sandbox and after three minutes of building so, I could see the website under 127.0.0.1:5173

  3. Finally, of course, I have to add that I read the documentation AWS Amplify on this a little later ;)

Conclusion

I know that the package.json must also be adapted by developers themselves from time to time if they want to use certain packages. With AWS Amplify, however, some things do not seem to have been clarified yet. Especially, when it comes to the many different versions.

That's why I would like to help to identify the small errors here to guarantee a smooth creation and deployment process.

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

1 participant