Comments (18)
i confirm it works with hono and hono-sessions middleware https://github.com/bensos000/remultmonorepo
from remult.
You probably still have duplicate remult
packages (two node_modules/remult
folders) installed somewhere in your project tree.
While we'd like to fix remult to handle these situations better, having only one instance of the package in your tree is better.
Try deleting all remult
folders and re-running bun install
.
from remult.
Perfect.
One more thing, if you want to contribute an example project that shows bun, hono and hono-sessions - it would be a great contribution.
Simply add it to:
https://github.com/remult/remult/tree/master/examples
from remult.
I'll look into it Sunday morning
from remult.
This seems to be a cookie issue with bun
and cookie-session
. Did you try NodeJS?
from remult.
Hi @bensos000, we've looked deeper into this, and it seems that the issue here is a problem with the node js package called cookie-session that doesn't work correctly - and starts a new session on each request.
So, once you sign in, and set the user in the session, that user is not in the session in the next request. You can replace the cookie session usage with any other cookie session implementation that is popular in ban and it'll probably work
from remult.
@noam-honig thanks i will try it and confirm it if it works
from remult.
when i try to make some crud operations from the frontend it returns this
i think the payload returned from repo in the controller is not right
but it works when listing all todos in liveQuery
from remult.
Can you share the code?
from remult.
the code is in the same repo i have commited hono remult server with the new changes in the main branch => https://github.com/bensos000/remultmonorepo
from remult.
It seems that you have two versions of remult - one exp in the backend and one 25.5 in the shared. - causing to instances of remult to run in memory.
Can you please align both package.json
from remult.
i have updated the version of remult to exp in shared package and the same problem persist.
from remult.
yes you're right
i have shared now only one instance of remult throught the backend package and i confirm it works now
from remult.
Can you check this out in the latest version, I think it's fixed by now
from remult.
i have made 2 remult instances in the monorepo like this :
and i confirm it works now:
from remult.
ok i will make a pull request with an example of bun-hono-monorepo-todo
from remult.
here is the pr : #375
from remult.
Thanks - I've merged it
from remult.
Related Issues (20)
- Backend method parameter typing issues HOT 12
- Problem using Multer and withRemult HOT 3
- Data too long for JSON Field HOT 15
- "remult" has no exported member named 'ArrayEntityDataProvider' HOT 5
- 403 forbidden even when user is allowed HOT 9
- Better way to type a string property as a union of string subtypes? HOT 5
- Hono and Elysia Backend Remult Support HOT 5
- Issue with Repository 'find' Method: Syntax Error Results in Unintended Data Query HOT 3
- feature: ability to add Entity properties that related to Open API HOT 3
- Doc: Offline Support HOT 3
- Doc: DB Migrations HOT 4
- Whether to support bun:sqlite HOT 7
- howto access the repo from backend HOT 5
- [Feature Request] allow customized query function HOT 7
- server backend build fails HOT 4
- problem customising viteconfig HOT 12
- toOne creates link fields in both tables HOT 1
- How can i custom the logic of compile the entity and filter to raw sql? HOT 16
- How to support multiple data provider HOT 1
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 remult.