Patricius
Patricius
Explore posts from servers
NNuxt
Created by Patricius on 6/13/2024 in #❓・help
Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"
This issue got solved, I needed to uninstall @modernice/nuxt-i18n-modules library.
18 replies
NNuxt
Created by Patricius on 6/13/2024 in #❓・help
Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"
It does not, nodeJS works fine.
18 replies
NNuxt
Created by Patricius on 6/13/2024 in #❓・help
Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"
It's a nuxt module for lazy loading i18n modules. It uses it's vue package, thats where the following code is:
import { ref } from '@vue/runtime-core'
import { computed } from '@vue/reactivity'
import { ref } from '@vue/runtime-core'
import { computed } from '@vue/reactivity'
18 replies
NNuxt
Created by Patricius on 6/13/2024 in #❓・help
Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"
I found the cause of this issue. It was this node_module: https://github.com/modernice/vue-i18n-modules The issue happens in the file "./packages/vue-i18n-modules/src/extension.ts" at line 1 and 2. Any ideas why this only happens to Bun when ran in Docker?
18 replies
NNuxt
Created by Patricius on 6/13/2024 in #❓・help
Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"
Yeah :sadcatangry:
18 replies
NNuxt
Created by Patricius on 6/13/2024 in #❓・help
Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"
In case it works on your system, I will look over my package.json and find the troublemaker
18 replies
NNuxt
Created by Patricius on 6/13/2024 in #❓・help
Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"
Do you want to recreate this issue? It should be pretty simple, just create a new Nuxt3 template with bunx and dockerize it with my Dockerfile
18 replies
NNuxt
Created by Patricius on 6/13/2024 in #❓・help
Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"
Okay I tried 3.10 and 3.11, the issue persists. I want to add, that the issue is unlikely to have arrived from my own doing, as from "/usr/src/app/@vue/runtime-core" gets mentioned, right? I have installed some modules which definitely use vues reactivity, but its all @nuxt modules.
18 replies
CC#
Created by Patricius on 6/13/2024 in #help
Dockerized .NET8 API not accessible.
Also, amazing cat u have
28 replies
CC#
Created by Patricius on 6/13/2024 in #help
Dockerized .NET8 API not accessible.
Okay, thank you very much for resolving this with me. God knows how long it would take me to see this.
28 replies
CC#
Created by Patricius on 6/13/2024 in #help
Dockerized .NET8 API not accessible.
But also localhost and 0.0.0.0 was kind of in my head as the same thing
28 replies
CC#
Created by Patricius on 6/13/2024 in #help
Dockerized .NET8 API not accessible.
I hate dotnet but more myself for not thinking of this
28 replies
CC#
Created by Patricius on 6/13/2024 in #help
Dockerized .NET8 API not accessible.
oh wow it works
28 replies
CC#
Created by Patricius on 6/13/2024 in #help
Dockerized .NET8 API not accessible.
let me change the host within my app and see
28 replies
CC#
Created by Patricius on 6/13/2024 in #help
Dockerized .NET8 API not accessible.
Logs look fine, listening on localhost:8080 as per usual.
28 replies
CC#
Created by Patricius on 6/13/2024 in #help
Dockerized .NET8 API not accessible.
Same result:
curl http://localhost:8080/weatherforecast
curl: (56) Recv failure: Connection reset by peer
curl http://localhost:8080/weatherforecast
curl: (56) Recv failure: Connection reset by peer
As far as I know the error 56 shows that connection was established but dropped right away. This error also only occurs on the ports the app listens to, other ports throw error 7.
28 replies
NNuxt
Created by Patricius on 6/13/2024 in #❓・help
Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"
Another interesting detail is this:
nuxt_client | Nuxt 3.12.1
nuxt_client | 84 | "file:///Users/user/Documents/Repositories/Enterprise_Nuxt_Template/clien
nuxt_client | ^
nuxt_client | warn: Non-relative path "file:///Users/user/Documents/Repositories/Enterprise_Nuxt_Template/client/.nuxt/nuxt-mail" is not allowed when "baseUrl" is not set (did you forget a leading "./"?)
nuxt_client | at /usr/src/app/.nuxt/tsconfig.json:84:9
nuxt_client | Nuxt 3.12.1
nuxt_client | 84 | "file:///Users/user/Documents/Repositories/Enterprise_Nuxt_Template/clien
nuxt_client | ^
nuxt_client | warn: Non-relative path "file:///Users/user/Documents/Repositories/Enterprise_Nuxt_Template/client/.nuxt/nuxt-mail" is not allowed when "baseUrl" is not set (did you forget a leading "./"?)
nuxt_client | at /usr/src/app/.nuxt/tsconfig.json:84:9
This gets only thrown at the same time I experience this issue. Defining baseUrl inside of my tsconfig does not help.
18 replies
CC#
Created by Patricius on 6/13/2024 in #help
Dockerized .NET8 API not accessible.
Hey, thank you for answering, I was in a meeting. - Why is entrypoint dotnet watch run? This is supposed to be a development environment Dockerfile, dotnet watch is just setting up hot reload. I have another Dockerfile for prod but that one is facing the same issues. - Why Dockerfile for dev env? Because I have other pieces of Software and with Docker launching the project takes 1 command. - This is also why I dont do publish and dont use server.dll. I can assure you that outside of Docker these commands and how I run it work fine. Even inside of Docker when I run curl commands everything is fine. - What do logs say? The logs just show the typical dotnet startup screen:
dotnet_api | Determining projects to restore...
dotnet_api | All projects are up-to-date for restore.
dotnet_api | server -> /usr/src/app/bin/Debug/net8.0/server.dll
dotnet_api | dotnet watch 🚀 Started
dotnet_api | warn: Microsoft.AspNetCore.Hosting.Diagnostics[15]
dotnet_api | Overriding HTTP_PORTS '8080' and HTTPS_PORTS ''. Binding to values defined by URLS instead 'http://localhost:8080'.
dotnet_api | info: Microsoft.Hosting.Lifetime[14]
dotnet_api | Now listening on: http://localhost:8080
dotnet_api | dotnet watch 🌐 Unable to launch the browser. Navigate to http://localhost:8080
dotnet_api | info: Microsoft.Hosting.Lifetime[0]
dotnet_api | Application started. Press Ctrl+C to shut down.
dotnet_api | info: Microsoft.Hosting.Lifetime[0]
dotnet_api | Hosting environment: Development
dotnet_api | info: Microsoft.Hosting.Lifetime[0]
dotnet_api | Content root path: /usr/src/app
dotnet_api | Determining projects to restore...
dotnet_api | All projects are up-to-date for restore.
dotnet_api | server -> /usr/src/app/bin/Debug/net8.0/server.dll
dotnet_api | dotnet watch 🚀 Started
dotnet_api | warn: Microsoft.AspNetCore.Hosting.Diagnostics[15]
dotnet_api | Overriding HTTP_PORTS '8080' and HTTPS_PORTS ''. Binding to values defined by URLS instead 'http://localhost:8080'.
dotnet_api | info: Microsoft.Hosting.Lifetime[14]
dotnet_api | Now listening on: http://localhost:8080
dotnet_api | dotnet watch 🌐 Unable to launch the browser. Navigate to http://localhost:8080
dotnet_api | info: Microsoft.Hosting.Lifetime[0]
dotnet_api | Application started. Press Ctrl+C to shut down.
dotnet_api | info: Microsoft.Hosting.Lifetime[0]
dotnet_api | Hosting environment: Development
dotnet_api | info: Microsoft.Hosting.Lifetime[0]
dotnet_api | Content root path: /usr/src/app
- Check if something is using the port? I have tried using 5282, 3000 (which I use for other apps I develop) and 8080. I know for sure that nothing else is using 3000.
28 replies
NNuxt
Created by Patricius on 6/12/2024 in #❓・help
Dockerized Nuxt3 Cannot find module "@vue/reactivity"
This is an error from Bun.
9 replies
NNuxt
Created by Patricius on 6/12/2024 in #❓・help
Dockerized Nuxt3 Cannot find module "@vue/reactivity"
Ive made a Dockerfile for Production and it all works fine. Changing this Dockerfile to development with hot reload makes it throw this error :pepemeltdown:
9 replies