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
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
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
NNuxt
Created by Patricius on 6/12/2024 in #❓・help
Dockerized Nuxt3 Cannot find module "@vue/reactivity"
No description
9 replies
NNuxt
Created by Patricius on 6/12/2024 in #❓・help
Dockerized Nuxt3 Cannot find module "@vue/reactivity"
This Dockerfile is meant for dev environment, it has bun run build for some reason but its only cause I had it generated by chatgpt. Yeah so I just want to create a dev environment using docker, and I use Nuxt3 with bun as my "frontend".
9 replies
NNuxt
Created by Patricius on 6/12/2024 in #❓・help
Dockerized Nuxt3 Cannot find module "@vue/reactivity"
Is this an issue with how Bun resolves paths?
9 replies