On first run of the container the application starts and I am able to create an account via the link on the login page of the web application
Current Behavior
When I click on the 'Create Account' link in the web application I get an error message. Reviewing the logs from docker I see this entry;
budge | QueryFailedError: SQLITE_ERROR: no such table: users
budge | at QueryFailedError.TypeORMError [as constructor] (/app/budge/backend/node_modules/typeorm/error/TypeORMError.js:9:28)
Looking further back in the log I see this entry;
budge | > BudgE@0.0.6 migrate
budge | > npx --yes ts-node ./node_modules/typeorm/cli.js migration:run
budge |
budge | Error during migration run:
budge | src/entities/User.ts(12,20): error TS7016: Could not find a declaration file for module 'bcrypt'. '/app/budge/backend/node_modules/bcrypt/bcrypt.js' implicitly has an 'any' type.
budge | Try `npm i --save-dev @types/bcrypt` if it exists or add a new declaration (.d.ts) file containing `declare module 'bcrypt';`
budge | src/entities/User.ts(13,17): error TS7016: Could not find a declaration file for module 'jsonwebtoken'. '/app/budge/backend/node_modules/jsonwebtoken/index.js' implicitly has an 'any' type.
budge | Try `npm i --save-dev @types/jsonwebtoken` if it exists or add a new declaration (.d.ts) file containing `declare module 'jsonwebtoken';`
budge |
Steps to Reproduce
Create docker-compose.yml based on instructions on this site. Mine looks like this;
Expected Behavior
On first run of the container the application starts and I am able to create an account via the link on the login page of the web application
Current Behavior
When I click on the 'Create Account' link in the web application I get an error message. Reviewing the logs from docker I see this entry;
Looking further back in the log I see this entry;
Steps to Reproduce
docker-compose up -d
Environment
OS: Mac OS 12.3 CPU architecture: x86_64/arm32/arm64 - arm64 How docker service was installed:
Running Docker Desktop for Mac (Apple Silicon)
Command used to create docker container (run/create/compose/screenshot)
Docker logs
docker_log_budge.log