-
Notifications
You must be signed in to change notification settings - Fork 118
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
Module not found: Can't resolve 'tedious' #195
Comments
So I really don't understand how this works, but I found a solution here: I changed my (previously empty)
And it started working... 🤔 How, I have no idea. |
So actually my previous fix broke my Next.js app 😆 I started getting these errors seemingly out of nowhere:
So if anyone stumbles upon this, I had to change it not to overwrite the previously set config.externals:
|
And now the whole app is unresponsive (just gets stuck in some react-dom code without actually doing anything, hot reload does not work) and does not work properly... 😞 So I still have no idea what the solution is. |
I'm still looking at your original issue with "Module not found: Can't resolve 'tedious'". Trying to figure out if there's another way to handle it... |
This worked for me:
|
Great! This is exactly what I needed. My last mentioned errors were unrelated, it became unresponsive after I left async in front of the main page component function. I am just wondering - is it now possible to use remult inside server components, like this? When I tried that (like this):
I got this error:
As for this issue, you can close it, but maybe it would be useful to add a note to the documentation. |
To use
|
might be helpful: @mikro-orm/core https://nextjs.org/docs/app/api-reference/next-config-js/serverComponentsExternalPackages |
Describe the bug
I want to use remult in my Next.js app router app. This is /src/app/api/[...remult]/route.ts:
When I run
curl http://localhost:3000/api/regions -H "Content-Type: application/json"
I get the following error printed into the console:Apparently knex does not understand I want SQLite and tries to import every driver possible. When I installed tedious, the error changed to 'mysql'...
I pushed it to a new branch in my repo here: https://github.com/maral/catchment-areas/tree/add-text-to-map-and-remult
What do I do differently to the tutorials? :(((
The text was updated successfully, but these errors were encountered: