LTroya
LTroya
Explore posts from servers
NNuxt
Created by LTroya on 7/18/2024 in #❓・help
Error 500 Cannot find module ".output/server/node_modules/vue/server-renderer/index.mjs"
import svgLoader from 'vite-svg-loader'
import { defineNuxtConfig, type NuxtConfig } from 'nuxt/config'
import type { ModuleOptions } from 'nuxt-graphql-request'
import {
PUBLIC_GRAPHQL_ENDPOINT,
} from './utils/constants'

const IS_PRODUCTION = process.env.CF_PAGES_BRANCH === 'production'

const runtimeConfig: { public: any } = {
public: {},
}

// Global CSS: https://go.nuxtjs.dev/config-css
const css = ['~/assets/main.scss']

const sourcemap = {
server: process.env.CONTEXT === 'production',
client: process.env.CONTEXT === 'production',
}

const modules: any[] = ['@nuxtjs/tailwindcss', 'nuxt-graphql-request']

const tailwindcss = {
exposeConfig: true,
viewer: false,
configPath: './tailwind.config.ts',
}

const graphql: Partial<ModuleOptions> = {
clients: {
default: {
endpoint: PUBLIC_GRAPHQL_ENDPOINT,
options: {
requireCredentials: false,
} as any,
},
authenticatedClient: {
endpoint: GRAPHQL_ENDPOINT,
options: {
requireCredentials: true,
} as any,
},
},
}

interface CustomNuxtConfig extends NuxtConfig {
eslint?: any
}

const config: CustomNuxtConfig = {
compatibilityDate: '2024-04-03',
// app: { head },
typescript: {
strict: false,
},
devServerHandlers: [],
vite: {
plugins: [svgLoader({ svgo: false })],
define: {
__DEV__: !IS_PRODUCTION,
global: 'window',
},
},
runtimeConfig,
sourcemap,
modules,
css,
tailwindcss,
ignore: ['playwright/**/*.spec.*', 'playwright-report/*', '.idea/*'],
graphql,
experimental: {
// externalVue: false,
defaults: {
nuxtLink: {
trailingSlash: 'append',
activeClass: 'nuxt-link-active',
exactActiveClass: 'nuxt-link-exact-active',
},
},
},
}

export default defineNuxtConfig(config)
import svgLoader from 'vite-svg-loader'
import { defineNuxtConfig, type NuxtConfig } from 'nuxt/config'
import type { ModuleOptions } from 'nuxt-graphql-request'
import {
PUBLIC_GRAPHQL_ENDPOINT,
} from './utils/constants'

const IS_PRODUCTION = process.env.CF_PAGES_BRANCH === 'production'

const runtimeConfig: { public: any } = {
public: {},
}

// Global CSS: https://go.nuxtjs.dev/config-css
const css = ['~/assets/main.scss']

const sourcemap = {
server: process.env.CONTEXT === 'production',
client: process.env.CONTEXT === 'production',
}

const modules: any[] = ['@nuxtjs/tailwindcss', 'nuxt-graphql-request']

const tailwindcss = {
exposeConfig: true,
viewer: false,
configPath: './tailwind.config.ts',
}

const graphql: Partial<ModuleOptions> = {
clients: {
default: {
endpoint: PUBLIC_GRAPHQL_ENDPOINT,
options: {
requireCredentials: false,
} as any,
},
authenticatedClient: {
endpoint: GRAPHQL_ENDPOINT,
options: {
requireCredentials: true,
} as any,
},
},
}

interface CustomNuxtConfig extends NuxtConfig {
eslint?: any
}

const config: CustomNuxtConfig = {
compatibilityDate: '2024-04-03',
// app: { head },
typescript: {
strict: false,
},
devServerHandlers: [],
vite: {
plugins: [svgLoader({ svgo: false })],
define: {
__DEV__: !IS_PRODUCTION,
global: 'window',
},
},
runtimeConfig,
sourcemap,
modules,
css,
tailwindcss,
ignore: ['playwright/**/*.spec.*', 'playwright-report/*', '.idea/*'],
graphql,
experimental: {
// externalVue: false,
defaults: {
nuxtLink: {
trailingSlash: 'append',
activeClass: 'nuxt-link-active',
exactActiveClass: 'nuxt-link-exact-active',
},
},
},
}

export default defineNuxtConfig(config)
5 replies
NNuxt
Created by LTroya on 7/18/2024 in #❓・help
Error 500 Cannot find module ".output/server/node_modules/vue/server-renderer/index.mjs"
Here is my current nuxt.config.ts configuration
5 replies
NNuxt
Created by LTroya on 7/18/2024 in #❓・help
Error 500 Cannot find module ".output/server/node_modules/vue/server-renderer/index.mjs"
I would appreciate any hint 🙏
5 replies
NNuxt
Created by LTroya on 7/18/2024 in #❓・help
Error 500 Cannot find module ".output/server/node_modules/vue/server-renderer/index.mjs"
Here is what I can see on that .output/server/node_modules/vue folder.
5 replies
NNuxt
Created by LTroya on 1/16/2023 in #❓・help
Package.json updates for Nuxt 3 migration
That makes sense. Thank you so much
8 replies