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

Build failed on spa mode #21

Closed
mahapo opened this issue Oct 6, 2020 · 4 comments
Closed

Build failed on spa mode #21

mahapo opened this issue Oct 6, 2020 · 4 comments

Comments

@mahapo
Copy link

mahapo commented Oct 6, 2020

Build failed on netlify using spa mode

5:43:50 PM: $ nuxt build --spa
5:43:51 PM: [warn] `mode` option is deprecated. Please use `ssr: true` for universal mode or `ssr: false` for spa mode and remove `mode` from `nuxt.config`
5:44:25 PM: [fatal] Cannot destructure property `port` of 'undefined' or 'null'.
5:44:25 PM:   at node_modules/@nuxt/image/dist/index.js:113:15
5:44:25 PM:   at node_modules/hable/dist/hable.js:1:1052
5:44:25 PM:   at node_modules/hable/dist/hable.js:1:270
5:44:25 PM:   at async Nuxt.callHook (node_modules/hable/dist/hable.js:1:1021)
5:44:25 PM:   at async Generator.generate (node_modules/@nuxt/generator/dist/generator.js:132:5)
5:44:25 PM:   at async Object.run (node_modules/@nuxt/cli/dist/cli-build.js:105:7)
5:44:25 PM:   at async NuxtCommand.run (node_modules/@nuxt/cli/dist/cli-index.js:2809:7)
mahapo pushed a commit to mahapo/image that referenced this issue Oct 6, 2020
@pi0
Copy link
Member

pi0 commented Oct 7, 2020

Hi @mahapo would you please provide a reproduction?

@mahapo
Copy link
Author

mahapo commented Oct 7, 2020

@pi0 You can recreate the issue with yarn nuxt-ts build playground -spa

@farnabaz
Copy link
Member

farnabaz commented Oct 8, 2020

@farnabaz
Copy link
Member

farnabaz commented Nov 10, 2020

@mahapo Thank you for the report and PR you created ❤️
We have refactored generation logic and the issue is fixed. It will be out in the next beta release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants