kb
kb
Explore posts from servers
NNuxt
Created by kb on 11/11/2024 in #❓・help
useAsyncData/useFetch > Function > Pinia Action - Best practices?
anyone got any wise words on this 😄
7 replies
NNuxt
Created by kb on 11/8/2024 in #❓・help
Nuxt OG Image works locally but not deployed
ah - i dont actually have the main module in my dependencies - guess i need a resolution to lock it at a required version or something
10 replies
NNuxt
Created by kb on 11/8/2024 in #❓・help
Nuxt OG Image works locally but not deployed
it does work if i serve it locally, just not on vercel?
10 replies
NNuxt
Created by Rejox on 8/10/2024 in #❓・help
defineOgImageComponent is not defined
No description
9 replies
NNuxt
Created by Rejox on 8/10/2024 in #❓・help
defineOgImageComponent is not defined
though while your about - there a common gotcha for it working locally, being visible in devtools, but then prod it just aint? 😆
9 replies
NNuxt
Created by Rejox on 8/10/2024 in #❓・help
defineOgImageComponent is not defined
it was my bad - i expected it to prefill the modules within nuxt config - muscle memory, so I just wasnt loading the module!
9 replies
NNuxt
Created by Rejox on 8/10/2024 in #❓・help
defineOgImageComponent is not defined
ever find a fix for this? @Rejox
9 replies
NNuxt
Created by kb on 11/7/2024 in #❓・help
NuxtImg + Vercel
every doc says something different. this cannot be what i need to do surely
image: {
screens: {
56: 56,
66: 66,
70: 70,
78: 78,
88: 88,
94: 94,
100: 100,
104: 104,
110: 110,
114: 114,
120: 120,
126: 126,
130: 130,
131: 131,
136: 136,
146: 146,
148: 148,
163: 163,
164: 164,
179: 179,
180: 180,
225: 225,
226: 226,
227: 227,
},
vercel: {
screens: {
56: 56,
66: 66,
70: 70,
78: 78,
88: 88,
94: 94,
100: 100,
104: 104,
110: 110,
114: 114,
120: 120,
126: 126,
130: 130,
131: 131,
136: 136,
146: 146,
148: 148,
163: 163,
164: 164,
179: 179,
180: 180,
225: 225,
226: 226,
227: 227,
},
},
},
image: {
screens: {
56: 56,
66: 66,
70: 70,
78: 78,
88: 88,
94: 94,
100: 100,
104: 104,
110: 110,
114: 114,
120: 120,
126: 126,
130: 130,
131: 131,
136: 136,
146: 146,
148: 148,
163: 163,
164: 164,
179: 179,
180: 180,
225: 225,
226: 226,
227: 227,
},
vercel: {
screens: {
56: 56,
66: 66,
70: 70,
78: 78,
88: 88,
94: 94,
100: 100,
104: 104,
110: 110,
114: 114,
120: 120,
126: 126,
130: 130,
131: 131,
136: 136,
146: 146,
148: 148,
163: 163,
164: 164,
179: 179,
180: 180,
225: 225,
226: 226,
227: 227,
},
},
},
11 replies
NNuxt
Created by kb on 11/7/2024 in #❓・help
NuxtImg + Vercel
No description
11 replies
NNuxt
Created by kb on 11/7/2024 in #❓・help
NuxtImg + Vercel
my images are in public/home-bg/ is that ok @kapa.ai
11 replies
NNuxt
Created by kb on 11/5/2024 in #❓・help
Nuxt 3 SSR Vercel Deployment Issues
Uncaught Exception: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at JSON.parse (<anonymous>)
at IncomingMessage.<anonymous> (file:///var/task/chunks/build/server.mjs:3107:42)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js process exited with exit status: 129. The logs above can help with debugging the issue.
Uncaught Exception: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at JSON.parse (<anonymous>)
at IncomingMessage.<anonymous> (file:///var/task/chunks/build/server.mjs:3107:42)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js process exited with exit status: 129. The logs above can help with debugging the issue.
ive ran out of talent on this really. still working ok locally though
14 replies
NNuxt
Created by kb on 11/5/2024 in #❓・help
Nuxt 3 SSR Vercel Deployment Issues
@kapa.ai do my additional messages shed any light
14 replies
NNuxt
Created by kb on 11/5/2024 in #❓・help
Nuxt 3 SSR Vercel Deployment Issues
package.json scripts:
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"bp": "nuxt build && nuxt preview",
"postinstall": "nuxt prepare",
"lint:js": "eslint --ext \".ts,.vue\" --ignore-path .gitignore .",
"lint:prettier": "prettier --check .",
"lint": "npm run lint:js && npm run lint:prettier",
"lintfix": "prettier --write --list-different . && npm run lint:js --fix",
"test:unit": "vitest",
"test:e2e": "cypress open",
"typecheck": "nuxi typecheck",
"start": "nuxt start"
},
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"bp": "nuxt build && nuxt preview",
"postinstall": "nuxt prepare",
"lint:js": "eslint --ext \".ts,.vue\" --ignore-path .gitignore .",
"lint:prettier": "prettier --check .",
"lint": "npm run lint:js && npm run lint:prettier",
"lintfix": "prettier --write --list-different . && npm run lint:js --fix",
"test:unit": "vitest",
"test:e2e": "cypress open",
"typecheck": "nuxi typecheck",
"start": "nuxt start"
},
14 replies
NNuxt
Created by kb on 11/5/2024 in #❓・help
Nuxt 3 SSR Vercel Deployment Issues
nuxt config i have here, stripped of anything unrelated
14 replies
NNuxt
Created by kb on 11/5/2024 in #❓・help
Nuxt 3 SSR Vercel Deployment Issues
I did find this message from Daniel himself in 2021; https://discord.com/channels/473401852243869706/476088961010499605/842525934062272512 which lead me to moving some dependencies from devDependencies, to dependencies - and those went away, but no joy on vercel side.
14 replies
NNuxt
Created by kb on 11/5/2024 in #❓・help
Nuxt 3 SSR Vercel Deployment Issues
No description
14 replies
NNuxt
Created by kb on 10/28/2024 in #❓・help
Lint complaining about await in setup function
hey, its
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parser: 'vue-eslint-parser',
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
'plugin:vue/base',
'plugin:vuetify/base',
],
plugins: ['unused-imports'],
rules: {
'vue/singleline-html-element-content-newline': 0,
'vue/padding-line-between-blocks': ['error', 'always'],
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
{
registeredComponentsOnly: false,
ignores: [],
},
],
'no-console': ['warn'],
'no-alert': ['error'],
'vue/no-unused-vars': ['error'],
'unused-imports/no-unused-imports': 'warn',
'unused-imports/no-unused-vars': [
'warn',
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
],
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'always',
component: 'always',
},
svg: 'always',
},
],
'vue/no-v-html': 0,
'vue/multi-word-component-names': 0,
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'no-undef': 'off',
},
}
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parser: 'vue-eslint-parser',
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
'plugin:vue/base',
'plugin:vuetify/base',
],
plugins: ['unused-imports'],
rules: {
'vue/singleline-html-element-content-newline': 0,
'vue/padding-line-between-blocks': ['error', 'always'],
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
{
registeredComponentsOnly: false,
ignores: [],
},
],
'no-console': ['warn'],
'no-alert': ['error'],
'vue/no-unused-vars': ['error'],
'unused-imports/no-unused-imports': 'warn',
'unused-imports/no-unused-vars': [
'warn',
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
],
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'always',
component: 'always',
},
svg: 'always',
},
],
'vue/no-v-html': 0,
'vue/multi-word-component-names': 0,
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'no-undef': 'off',
},
}
7 replies
NNuxt
Created by kb on 10/9/2024 in #❓・help
N2 > 3 server middleware issue
anyone? D:
3 replies
NNuxt
Created by kb on 10/9/2024 in #❓・help
N2 > 3 server middleware issue
ok since realised i should be in /server/middleware so updated that, but same issue
3 replies
NNuxt
Created by kb on 9/3/2024 in #❓・help
Nuxt Icon - Custom Local Collection - Change Colour?
hmm so not ideal if i downloaded all of the thousands of FA 6 pro icons etc
4 replies