Comments (9)
Will do, thanks, Ben :)
p.s. just want to say that I have been subscribed to your channel for years now, even though you made a video on how you sleep enough for dev productivity and have time and motivation for everything I want to tell you that it still amazes me that you can create so many YT videos and share all that knowledge/experience.
Stay safe and keep up the good work.
from lireddit.
2 fixes I found. #1 is probably the most preferable
- make sure the postgres user has superuser privileges - ALTER USER myuser WITH SUPERUSER;
- in the mikro-orm.config, in the migrations section, add the disableForeignKeys option
export default {
migrations: {
path: path.join(__dirname, './migrations'),
pattern: /^[\w-]+\d+.[tj]s$/,
disableForeignKeys: false,
},
...
from lireddit.
did you try deleting the dist
folder and rebuilding the project?
from lireddit.
Yes, still the same output, even cloned your branch, run your code with my small db changes and still the same issue :(
Probably something wrong with my postgresql :|
from lireddit.
from lireddit.
try creating a new postgres user and give it permissions to the db https://medium.com/coding-blocks/creating-user-database-and-adding-access-on-postgresql-8bfcd2f4a91e
from lireddit.
@benawad sorry if I am boring, I got it to work
In case anyone else is having this issue in the future, my solution was that in the mikro-orm.config
file
in the DB configuration, I put my default root user as my Postgres user and it works
Something with the permissions/roles was off , maybe it is just my local machine
from lireddit.
@kurtzilla Looks like a clean and elegant solution, thanks for the info
from lireddit.
@kurtzilla Thanks! the #1 worked for me.
from lireddit.
Related Issues (20)
- I'm getting this error HOT 1
- Mikro-orm branches
- `cache.resolveFieldByKey` is deprected HOT 6
- dbName ="lireddit" Invalid shorthand property intliazer HOT 2
- Cookie does not clear from browser in production HOT 2
- TypeError: is not a function or its return value is not iterable HOT 2
- CORS error when loading schema from GraphQL Code Generator HOT 1
- Samesite Lax cookie not being set HOT 15
- Redis ClientClosedError after cookie is set HOT 4
- ERR_INVALID_ARG_TYPE when setting req.session.userId HOT 2
- Dokku app container failed to start: exec docker-entrypoint.sh failed: Exec format error HOT 3
- Redis v4 config problem & solution (so you don't have to sweat) HOT 5
- useMeQuery() doesn't run after redirection from login/register page HOT 4
- Error: Cannot use GraphQLObjectType "FieldError" from another module or realm (problem and solution)
- Problem + Solution: More than one row returned by a subquery used as an expression
- TypeError: Cannot set property 'userId' of undefined HOT 3
- createConnection typeorm deprecation
- The Me query HOT 2
- findByIds Deprecated HOT 1
- Module parse failed: Unexpected token (4:39)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lireddit.