Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bridge run generate, no dist directory generated #31

Closed
baixiaoyu2997 opened this issue Apr 11, 2022 · 2 comments · Fixed by #324
Closed

bridge run generate, no dist directory generated #31

baixiaoyu2997 opened this issue Apr 11, 2022 · 2 comments · Fixed by #324
Assignees
Labels
bridge bug Something isn't working 🔨 p3-minor-bug

Comments

@baixiaoyu2997
Copy link

baixiaoyu2997 commented Apr 11, 2022

Environment

Nuxt project info: 09:55:03


  • Operating System: Darwin
  • Node Version: v16.14.0
  • Nuxt Version: 2.16.0-27358576.777a4b7f
  • Package Manager: [email protected]
  • Builder: webpack
  • User Config: build, bridge, target, head, css, plugins, components, buildModules, modules, publicRuntimeConfig, loading
  • Runtime Modules: @pinia/[email protected]
  • Build Modules: @vueuse/[email protected], 8n, @nuxt/[email protected]

Reproduction

link: https://codesandbox.io/s/qvijbf?file=/nuxt.config.js
config :

defineNuxtConfig({
  target: 'static',
  bridge: {
    nitro: process.env.NODE_ENV !== 'production'
  },
})

nuxi generate

Describe the bug

no dist dir

Additional context

No response

Logs

No response

@baixiaoyu2997 baixiaoyu2997 changed the title bridge generate dir was changed bridge run generateg, no dist directory generated Apr 11, 2022
@baixiaoyu2997 baixiaoyu2997 reopened this Apr 11, 2022
@danielroe
Copy link
Member

For now, a workaround is to run nuxt generate instead.

@danielroe danielroe added bug Something isn't working 🔨 p3-minor-bug and removed pending triage labels Apr 11, 2022
@baixiaoyu2997
Copy link
Author

thanks, next time i will check breaking change first

@danielroe danielroe changed the title bridge run generateg, no dist directory generated bridge run generate, no dist directory generated Apr 13, 2022
@danielroe danielroe transferred this issue from nuxt/framework Apr 13, 2022
@danielroe danielroe self-assigned this May 1, 2022
@danielroe danielroe mentioned this issue May 1, 2022
10 tasks
danielroe added a commit that referenced this issue Jul 8, 2022
BREAKING CHANGE: `nuxi generate` now behaves differently using nitro prerendering instead of the Nuxt 2 full-static approach. If you would like to keep the Nuxt 2 generation logic while still using nitro, you can run `nuxi generate --classic` or set `bridge.nitroGenerator` to `false`.

resolves #322, resolves #31, resolves #32, resolves #375, resolves #356
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bridge bug Something isn't working 🔨 p3-minor-bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants