You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
📖 Documentation (updates to the documentation or readme)
🐞 Bug fix (a non-breaking change that fixes an issue)
👌 Enhancement (improving an existing functionality)
✨ New feature (a non-breaking change that adds functionality)
🧹 Chore (updates to the build process or auxiliary tools and libraries)
⚠️ Breaking change (fix or feature that would cause existing functionality to change)
📚 Description
Currently, the path for spa-loading-template.html is resolve incorrectly in Nuxt 4 with the latest release (6.12.2).
But I cannot use the nightly (main), because there is a regression where class inside pages of a layer are not generated.
Update to Project Configuration File
The package.json file, which is essentially the heart of any javascript project, has been updated. A new script titled "prepare" has been added. This script, when run, carries out two tasks: pnpm dev:prepare to set up the development environment, and pnpm run build to compile the source code into a deployable state.
Adjustments to Source Code Loading Logic
In the src/internal-context/load.ts file, which dictates how certain parts of the source code are loaded, there's been a switch in function usage. Previously using withSrcDir, the code under the spaLoadingTemplate condition now uses the r function. This changes the way the software locates and loads specific pieces of the codebase during operation.
mrleblanc101
changed the title
Apply fix on 6.14 (main) to 6.12.2 to bypass regression
Apply fix from 6.14 (main) to 6.12.2 to bypass regression
Apr 15, 2025
Yes, but pages/ in layer don't work in nightly. Not sure why the diff is like that. My branch is behind main. I tried to fix the problem with pages but couldn't figure it out, main has a lot of changes
@ineshbose
Maybe I'll give it another go, but I couldn't figure it out. 6.13.2 and main are pretty different, there is a significant refactor that makes it harder for me to understand what caused the regression.
My best guess is adding if (moduleOptions.experimental?.strictScanContentPaths) { around this hook nuxt.hook('pages:extend', async (pages) => { caused the regression in this commit 75efd5c.
But honestly I don't understand much, and I don't know why the change was made 😅
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
From our chat
❓ Type of change
📚 Description
Currently, the path for
spa-loading-template.htmlis resolve incorrectly in Nuxt 4 with the latest release (6.12.2).But I cannot use the nightly (
main), because there is a regression where class insidepagesof a layer are not generated.