bridge icon indicating copy to clipboard operation
bridge copied to clipboard

cannot disable use nitro ?

Open Stvchm9703 opened this issue 3 years ago • 0 comments

Environment



Reproduction

// simply clone from https://github.com/antfu/vitesse-nuxt-bridge // and edit the config file to disable nitro

yarn build yarn start

Describe the bug

I setup the nuxt config as the SSR, and I try to turn off nitro feature for other reason

// nuxt.config.ts
export default defineNuxtConfig({
  target: 'server',
  ssr: true,
  mode: "universal",
//....
  components: true,
  bridge: {
    vite: true,
    nitro: false,
    nitroGenerator: false,
    capi: true,
  },

//....
})

, so far, I try to run yarn nuxi build && yarn nuxi start , and I got

 ERROR  Cannot find nitro.json. Did you run nuxi build first? Search path:                                    02:56:39
 [
  'C:/Users/Steven Chm/project/centanet-v6/.output/nitro.json',
  'C:/Users/Steven Chm/project/centanet-v6/nitro.json'
]

while I also try yarn nuxt build && yarn nuxt start, and got :

 ERROR  bundle export should be a function when using { runInNewContext: false }.                             02:53:27

  at node_modules\vue-server-renderer\build.prod.js:1:77001
  at new Promise (<anonymous>)
  at node_modules\vue-server-renderer\build.prod.js:1:76851
  at Object.renderToString (node_modules\vue-server-renderer\build.prod.js:1:80049)
  at SSRRenderer.render (node_modules\@nuxt\vue-renderer-edge\dist\vue-renderer.js:239:38)

it seem to be the Nuxi is not adapt to non-nitro server case,

Additional context

since the nitropack (node_modules\nitropack\dist\shared\nitro.mjs, function _build) during the rollup bundle using symlink and throw out EISDIR, somehow I sort out the issue is about ExFAT file system.

however, I cannot move the project to other drive. and I just wonder at least the project can be turn off the nitro.

Logs

No response

Stvchm9703 avatar Aug 14 '22 19:08 Stvchm9703