rightnow
rightnow
NNuxt
Created by rightnow on 10/10/2024 in #❓・help
How to add Stylistic options like ident: 'tab', quotes: 'single', to eslint.config.mjs?
Hello! Is it possible to get stylistic options like stylistic: { indent: 'tab', quotes: 'single', semi: false, braceStyle: '1tbs', arrowParens: true, }, Inside the eslint.config.mjs that uses withNuxt function? I dont want to add it to the nuxt.config.ts if possible
4 replies
NNuxt
Created by rightnow on 6/14/2024 in #❓・help
500 error - entities/lib/decode.js does not provide export named 'default' at production build
Upgraded my project to newest version, and getthing this. [nuxt] [request error] [unhandled] [500] The requested module 'entities/lib/decode.js' does not provide an export named 'default' at ModuleJob._instantiate (node:internal/modules/esm/module_job:171:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:254:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:475:24)
at async ./.output/server/chunks/routes/renderer.mjs:141:24
at async ./.output/server/chunks/routes/renderer.mjs:244:64
at async Object.handler (./.output/server/chunks/routes/renderer.mjs:19:22)
at async Object.handler (./.output/server/chunks/runtime.mjs:2967:19)
at async Server.toNodeHandle (./.output/server/chunks/runtime.mjs:3233:7) No idea what it comes from. Anyone seen this before?
2 replies
NNuxt
Created by rightnow on 6/11/2024 in #❓・help
When upgrading to 3.12.1 -> @nuxt/schema & @nuxt/kit to be at least 3.12.1 but got 1.0.0
When i upgraded to 3.12.1 im getting this error when i start the dev server. I used the recommanded npx upgrade method. Also tried pnpm install, removed node_modules, but still no luck.
13 replies
NNuxt
Created by rightnow on 7/10/2023 in #❓・help
Plugin hooks
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook('app:start', () => {
console.log('app start')
})
})
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook('app:start', () => {
console.log('app start')
})
})
This produces no console log inside my application. Is it the right syntax?
2 replies