v3.0.0-rc.10 #16427
Replies: 0 comments 82 replies
-
Hi is it possible to create more complex router news.domain.com => news.vew |
Beta Was this translation helpful? Give feedback.
-
Can't wait to try it out. Is there any word on a better / built-in authentication backend (JWT)? |
Beta Was this translation helpful? Give feedback.
-
Looks like this "Full Static Generation" can be a real game changer. Very nice work indeed. |
Beta Was this translation helpful? Give feedback.
-
Really looking forward to the stable version and nuxt/apollo is almost the perfect bundle for me ❤️ |
Beta Was this translation helpful? Give feedback.
-
Im getting this error when building:
Also lots of warnings: Development mode works great |
Beta Was this translation helpful? Give feedback.
-
When doing nuxt generate this one is pointing to wrong path
is there a way to change the index.html part? |
Beta Was this translation helpful? Give feedback.
-
I am getting an error updating from rc-8
|
Beta Was this translation helpful? Give feedback.
-
First of all, thank you for your hard work and full static generation. I have a fully static site, but want to have one api endpoint for submitting a contact form. When I use |
Beta Was this translation helpful? Give feedback.
-
Great job team!! Migrate from rc.9 to rc.10 without problems. I just run: |
Beta Was this translation helpful? Give feedback.
-
Nice work! 🎉🎉🎉 |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what is happening right now but for some reason, running npm run dev led me to this error |
Beta Was this translation helpful? Give feedback.
-
This is huge 😍 |
Beta Was this translation helpful? Give feedback.
-
If the rec 10 full static generation version will lose the reactive for I use some states to control whole app, in rec 9 after run the This is the demo repo for rec 10 and |
Beta Was this translation helpful? Give feedback.
-
After upgrading from rc9 to rc10 I've encounter an issue on prod, after build it doesn't work at all but it works seamlessly on dev. Nuxt config:
Any help? |
Beta Was this translation helpful? Give feedback.
-
RC10 empty project [Vue Router warn]: uncaught error during route navigation: |
Beta Was this translation helpful? Give feedback.
-
500 updated from rc.8 now this error any help? |
Beta Was this translation helpful? Give feedback.
-
Any Help Please 500 |
Beta Was this translation helpful? Give feedback.
-
The mentioned |
Beta Was this translation helpful? Give feedback.
-
As with every RC since rc.9, can't start nuxt in secured mode (RC.9, RC.10, edge-RC.11) : |
Beta Was this translation helpful? Give feedback.
-
I don't fully understand the Better Workspace Support. Does this mean it will help us build composables and components that work with Nuxt apps outside the Nuxt app itself? Because that's what I'm trying to do in my monorepo but I could not find any documentation regarding this. I only found this very useful video tutorial which uses RC6, Turborepo and configures Nuxt in a way it treats the components as modules plus a few other tricks. |
Beta Was this translation helpful? Give feedback.
-
I upgraded from
I tried jumping from 10 to 11 but same issue. This error always points to one of my vue files and nothing else. I am using a layout if that makes any difference. I understand that this is not a complete description of the issue and I apologize. I'm just wondering if someone has run into the same issue and/or if someone can point me to where I should be looking. |
Beta Was this translation helpful? Give feedback.
-
When executing 'npm run build',the terminal is warned ’Generated an empty chunk: "index" ‘,and Refresh the environment page online,there will be 404page,what happend? can give me some help? |
Beta Was this translation helpful? Give feedback.
-
🗒️ Release Notes
🚀 How to Upgrade
npx nuxi@latest upgrade --force
nuxt
dependency to3.0.0-rc.10
and then usenpx nuxi@latest cleanup
to cleanup any local caches⭐ What is new?
Critical Styles are Inlined
#6755, #7160
Global styles and used component styles are now automatically inlined when server-side rendering a page. This feature helps to improve the First Contentful Paint (FCP) metric.
🧪 You can disable the feature from
nuxt.config
usingexperimental: { inlineSSRStyles: false }
in case of any issues.Full Static Generation with Payload Rendering
#6411, #6455
In Nuxt 2, we introduced an amazing feature called Full Static Generation. When using
nuxt generate
, the payload of each page containing asyncData and state is extracted to a.js
chunk and we can deploy output to any static hosting without requiring a hosted API server. This feature also introduced performance benefits to reduce page size and allow smartly prefetching payload of next pages ahead of time when usingnuxt generate
but kept limited to it.This feature is now back in Nuxt 3 but much better! Payload is not only extracted during prerendering phase (
nuxt generate
) but also can be rendered on demand by simply appending/_payload.js
to the end of any URL. This made implementation much simpler and also unlocks future development to enable payload rendering for hybrid static server and incremental generated pages. Followup #6411 for the roadmap.Link Prefetching
#4329
Another goodie ported from Nuxt 2, is automatically prefetching the next pages when a
<NuxtLink>
is in the viewport.This feature is integrated with vue-router to prefetch components of the next route and also payload extraction to prefetch the payload of the next pages ahead of time! You can also hook into
link:prefetch
to do more prefetches.Better Workspace Support
unjs/pkg-types#34, #7439
Nuxt has several configurations for directories including
rootDir
wherenuxt.config
,package.json
, etc is, andsrcDir
which is the same asrootDir
by default but can be customized to move project code such aspages/
to thesrc/
directory. With Monorepo becoming more popular, it became clear we need another new option to act smarter in a monorepo.We have introduced a new
workspaceDir
configuration. It is automatically detected from rootDir using different heuristics (how?). This option is used to extend the search path fornode_modules
via #7439 but we will keep spreading its use in other places.🧪 You can manually set
workspaceDir
fromnuxt.config
in case of any issues.defineNuxtConfig
is Auto Imported#7267, #7485, #7497
Nuxt uses unjs/jiti in order to support typescript and ESM syntax for
nuxt.config
. When importing{ defineNuxtConfig } from 'nuxt'
in Nuxt 3, it causes the whole nuxt package to be loaded. It was making startup time slower.We have introduced a new
nuxt/config
subpath export that only exportsdefineNuxtConfig
for type support but you don't even need this anymore! Just remove import and enjoy shorter syntax!-- import { defineNuxtConfig } from 'nuxt' export default defineNuxtConfig({ })
More Powerful
nuxt init
We have switched to unjs/giget for a much more powerful template init engine.
Normally
nuxi init
command should work as it was before. If you were usingnuxt init org/repo
to clone the 3rd party GitHub repository, you should usenuxi init gh:org/repo
now.Experimental Zero-Client-JS Mode
#7156, #7248
This new experimental flag allows turning off all Nuxt client js code when server-side rendering a page.
Using this feature is advisable for the very small minority of sites that would not benefit from client-side JS.
You can try this feature by setting
experimental: { noScripts: true }
and let us know what you think!Read more about all the addition in the 🗒️ Release Notes
Beta Was this translation helpful? Give feedback.
All reactions