question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[error] Nitro entry is missing! Is "netlify" preset correct?

See original GitHub issue

Environment

Nuxi 3.0.0-rc.9 00:06:40 RootDir: /home/user/workspace/my-app 00:06:41 Nuxt project info: 00:06:41


  • Operating System: Linux
  • Node Version: v16.17.0
  • Nuxt Version: 3.0.0-rc.10-27716896.3753ea0
  • Nitro Version: 0.5.1
  • Package Manager: yarn@3.2.3
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

export default defineNuxtConfig({
  ssr: false, //true does not work anymore, but this is likely another issue
  nitro: {
    preset: "netlify",
    prerender: {
      routes: [
        '/blog'
      ]
    }
  },
.
.
.
}

NITRO_PRESET=netlify; nuxi build;netlify deploy

Describe the bug

I’m running into the issue suddenly with this command that once worked and was used to deploy my application to Netlify with the CLI instead of their CI

NITRO_PRESET=netlify; nuxi build;netlify deploy

Additional context

No response

Logs

Error: [demo-app       ] [error] Nitro entry is missing! Is "netlify" preset correct?
[demo-app       ]   at loadOptions (/home/runner/work/my-app/my-app/node_modules/nuxt/node_modules/nitropack/dist/shared/nitro.5c812f2f.mjs:2288:11)
[demo-app       ]   at async createNitro (/home/runner/work/my-app/my-app/node_modules/nuxt/node_modules/nitropack/dist/shared/nitro.5c812f2f.mjs:2351:19)
[demo-app       ]   at async prerender (/home/runner/work/my-app/my-app/node_modules/nuxt/node_modules/nitropack/dist/shared/nitro.5c812f2f.mjs:2662:25)
[demo-app       ]   at async /home/runner/work/my-app/my-app/node_modules/nuxt/dist/index.mjs:1422:7
[demo-app       ]   at async build (/home/runner/work/my-app/my-app/node_modules/nuxt/dist/index.mjs:1988:5)
[demo-app       ]   at async Object.invoke (/opt/hostedtoolcache/node/16.17.0/x64/lib/node_modules/nuxi/dist/chunks/build.mjs:45:5)
[demo-app       ]   at async _main (/opt/hostedtoolcache/node/16.17.0/x64/lib/node_modules/nuxi/dist/cli.mjs:50:20)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
danielroecommented, Sep 13, 2022

Yes. I have identified the commit and a workaround that should help for now. (I have verified the workaround.)

0reactions
daver987commented, Oct 15, 2022

I will give it a shot. Thank you for finding a build that works. I need to cool it down with the updates. I keep getting myself into trouble. Lol.

On Oct 15, 2022, at 14:53, KadlinoBIT @.***> wrote:

This issue is back again! I’m using Nuxt 3.0.0-rc.12-27764033.ddbfae1 with Nitro 0.5.5-27763894.f57cbce Even If I change it back to RC-11 it still does it ugh.

@daver987https://github.com/daver987 I have switched to 3.0.0-rc.11-27727864.720da64 and it started working again.

— Reply to this email directly, view it on GitHubhttps://github.com/nuxt/framework/issues/7459#issuecomment-1279808037, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUIQIWXBO7FSTK6AF5W35UTWDL4TPANCNFSM6AAAAAAQK4B2W4. You are receiving this because you were mentioned.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nuxt 3 Deploy Failed: Rollup failed to resolve import "vue"
Hi all, I've been trying to deploy a Nuxt 3 app for the past few hours, but all attempts are failing. The app...
Read more >
Deploying a new nuxt 3 app result to error - Support
Hello,. I've created a new nuxt 3 app and tried to delopy it to netlify with github: stoic-fermat-995d10. The build stop when It...
Read more >
[Support Guide] Frequently encountered problems during builds
In the Netlify UI,(not the netlify.toml) set the environment variable NETLIFY_BUILD_DEBUG to true to print additional debugging information in the build logs.
Read more >
Initial Server Response Time (Nuxt 3 SSR) - Support
I read that response as, Netlify preset is working, but it's slow and Edge Functions preset it not working - so to increase...
Read more >
[Support Guide] Netlify app builds locally but fails on deploy ...
Last Reviewed By Netlify Support Staff: December 2022 Are you struggling to understand why your project runs locally but errors out with missing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found