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

Missing dependencies #170

Closed
Heiss opened this issue Dec 28, 2023 · 6 comments
Closed

Missing dependencies #170

Heiss opened this issue Dec 28, 2023 · 6 comments

Comments

@Heiss
Copy link

Heiss commented Dec 28, 2023

Hey,

i wanted to yarn build the assets, but got "module not found: Can't resolve ' ../../../aws-exports'. It comes from

import config from '../../../aws-exports';

I used "yarn install" and "yarn build" as suggested in readme.

What is missing here?

Thank you. Have a great day.

@damonsk
Copy link
Owner

damonsk commented Dec 28, 2023

Hi @Heiss

Apologies with the recent beta merge I've not updated the readme.

The project depends on AWS Amplify and an AWS account as it creates supporting infrastructure (for saving maps and serving accounts).

Install Amplify

npm install -g @aws-amplify/cli

Navigate to the frontend folder in Terminal/Bash and initialise amplify.

cd frontend/
amplify init

The infrastructure that will be created is defined here https://github.com/damonsk/onlinewardleymaps/tree/master/frontend/amplify/backend

The costs will be minimal as it's based on serverless offerings and likely covered under the Free Tier if you have a new account.

For additional info on getting started with amplify, https://docs.amplify.aws/javascript/start/getting-started/installation/

@Heiss
Copy link
Author

Heiss commented Dec 28, 2023

Thank you for your fast answer.

Do i understand it correctly, that there is no way to run this app local only?

I asked, because i want to integrate it into my workflow with asciidoc (maybe i need to implement a service for kroki, suggested here yuzutech/kroki#179), which has to be local only.

@damonsk
Copy link
Owner

damonsk commented Dec 28, 2023

I "think" it will be possible - Create the aws-exports.js file in frontend/ folder with the following content.

const awsmobile = {};
export default awsmobile;

The AWS infra is used for some new features which are not yet live and behind a feature switch (

)

@damonsk
Copy link
Owner

damonsk commented Dec 28, 2023

On a side note, you can check out the classic branch as this doesn't have the deps on Amplify https://github.com/damonsk/onlinewardleymaps/tree/classic

Runs at https://classic.onlinewardleymaps.com.

Just note, features will start to drift as it won't receive future updates.

This may also be of interest. #75

@damonsk
Copy link
Owner

damonsk commented Dec 28, 2023

hopefully you're up and running, any more problems feel free to re-open.

@Heiss
Copy link
Author

Heiss commented Dec 28, 2023

I created the PR in kroki now. Feel free to take a look at it. It is mostly the approach from #75 with some tweaks for kroki.

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