Cetus πŸ”›πŸ”
Cetus πŸ”›πŸ”
Explore posts from servers
NNuxt
Created by Cetus πŸ”›πŸ” on 11/5/2024 in #❓・help
cannot deploy on netlify with nuxt v.3.14 (compatibility version 4)
i try to publish a basic app on netlify, with nuxt v3.14 and compaibility version 4. Here's the code of the app (here). Find the error here: https://pastes.dev/fpPUqq6s50
10 replies
NNuxt
Created by Cetus πŸ”›πŸ” on 4/19/2024 in #❓・help
Nuxt eslint, sort tailwindcss
hello, here you say that prettier is useless with the new eslint module, but then how to sort tailwind classes? With prettier I was using prettier-plugin-tailwindcss but is there a solution with eslint?
5 replies
NNuxt
Created by Cetus πŸ”›πŸ” on 8/23/2023 in #❓・help
WebSocket server error: Port is already in use
hey, I'm trying to run two nuxt apps in a monorepo with pnpm. I first changed the port of one of my two apps to 3001.
devServer: {
port: 3001
}
devServer: {
port: 3001
}
But now there is an error with the websocket that encounters a conflict with the port. Do you have a solution?
6 replies
NNuxt
Created by Cetus πŸ”›πŸ” on 4/23/2023 in #❓・help
Access runtimeConfig from tests
Hey, I'm trying to access the runtime config from my tests, I've tried several things but nothing works.
await setup({
nuxtConfig: {
runtimeConfig: {
public: {
apiBasePath: 'http://localhost:3000/api/v1'
}
}
}
})

const config = useRuntimeConfig() // ReferenceError: useRuntimeConfig is not defined
await setup({
nuxtConfig: {
runtimeConfig: {
public: {
apiBasePath: 'http://localhost:3000/api/v1'
}
}
}
})

const config = useRuntimeConfig() // ReferenceError: useRuntimeConfig is not defined
import {useRuntimeConfig} from "#app";

describe('Login', async () => {
await setup({
nuxtConfig: {
runtimeConfig: {
public: {
apiBasePath: 'http://localhost:3000/api/v1'
}
}
}
})

const config = useRuntimeConfig() // Error: Failed to load url #app (resolved id: #app) in [...]/test/api/login.spec.ts. Does the file exist?
import {useRuntimeConfig} from "#app";

describe('Login', async () => {
await setup({
nuxtConfig: {
runtimeConfig: {
public: {
apiBasePath: 'http://localhost:3000/api/v1'
}
}
}
})

const config = useRuntimeConfig() // Error: Failed to load url #app (resolved id: #app) in [...]/test/api/login.spec.ts. Does the file exist?
8 replies
NNuxt
Created by Cetus πŸ”›πŸ” on 4/15/2023 in #❓・help
getQuery() with a url doesn't work very well?
Using getQuery, I want to get a parameter called url. For short url it works (https://nuxt.com/modules gives https://nuxt.com/modules). But with a more complex URL like this: https://portal.azure.com/#@eduetatfr.onmicrosoft.com/resource/subscriptions/[my id]/resourceGroups/DefaultResourceGroup-westeurope/overview , I only get https://portal.azure.com and not the whole URL. Code:
const { url } = await getQuery(event);
const { url } = await getQuery(event);
7 replies
NNuxt
Created by Cetus πŸ”›πŸ” on 3/31/2023 in #❓・help
dragbar with nuxt and tailwind
hello, do you know how i could make a drag bar to change the size of the windows like in replit for example. I would like the bars to be generated automatically (like in replit, if you add windows the bars to change the size of the windows will be set correctly and will be functional).I use tailwind and nuxt 3.
1 replies