named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from 'consola'; const { consola } = pkg; at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21) at async ModuleJob.run (node:internal/modules/esm/module_job:189:...
"@nuxt/kit""^3.9.2"consola "^3.2.3"defu "^6.1.4"h3 "^1.10.0"image-meta "^0.2.0"node-fetch-native "^1.6.1"ohash "^1.1.3"pathe "^1.1.2"std-env "^3.7.0"ufo "^1.3.2"optionalDependencies:ipx "^3.0.0"ipx@^3.0.0:version "3.0.0"resolved "https://registry.yarnpkg.com/ipx...
(module => module instanceof RegExp ? module : new RegExp(module))\n\n if (options.build.quiet === true) {\n consola.level = 0\n }\n\n return options\n}\n","import Vue from 'vue'\nimport VueMeta from 'vue-meta'\nimport { createRenderer } from 'vue-server-renderer'\n...
如果你想修改已有路由配置可以在nuxt.config.js中添加route.extendRoutes配置项,覆盖已有路由或者添加新的路由: module.exports={...router:{...extendRoutes(routes){//- `routes` 是一个包含所所有路由配置信息的参数}}} Nuxt模块(modules) 如果你对上述路由的配置方式不满意,想要更加个性化的自定义路由,Nuxt.js ...
const express = require('express') const consola = require('consola') const { loadNuxt } = require('nuxt-start') const app = express() async function start () { const nuxt = await loadNuxt(isDev ? 'dev' : 'start') await nuxt.listen(process.env.PORT, process.env.HOST) ...
Consola issues seem to be fixed now, but these errors still exist. There is a problem with@nuxt/content "@nuxt/content": "^2.8.2", "nuxt": "^3.7.3" In my nuxt.config.ts: modules: [ '@nuxt/content', ], bun --bun run devreturnERROR Cannot start nuxt: {} ...
"consola": "^3.1.0", "eslint": "^8.42.0", "nuxt": "^3.5.3", "pinia": "^2.1.3", "typescript": "^5.1.3", "vue-tsc": "^1.6.5" }, "dependencies": { Check failure on line 33 in package.json GitHub Actions / lint Expected object keys to be in specified order. 'dep...
icons-vue@2.1.0 ├── @element-plus/nuxt@1.0.5 ├── @nuxtjs/color-mode@3.3.0 ├── @pinia/nuxt@0.4.11 ├── @unocss/nuxt@0.53.6 ├── @vueuse/nuxt@10.4.1 ├── consola@3.2.3 ├── element-plus@2.3.12 ├── nuxt@3.7.0 ├── sass@1.66.1 └── typescript@...
import { consola } from "consola" import type { ModuleMeta, NuxtModule } from "@nuxt/schema" import { findExports } from "mlly" import { build } from "unbuild" export interface BuildModuleOptions { rootDir: string srcDir?: string sourcemap?: boolean stub?: boolean outDir?: string } ...
{node: '>= 0.10.0'} dependencies: debug: 2.6.9 finalhandler: 1.1.2 parseurl: 1.3.3 utils-merge: 1.0.1 dev: true /consola/2.15.3: resolution: {integrity: sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==} dev: true /console-...