nuxt
Repos
52

Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3.

43068
3284

Create a new Nuxt project, module, layer or start from a theme with our collection of starters.

195
86

Discover the Nuxt modules to add any CMS, Database, UI, Auth and integrations into your Vue application.

608
103

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.

2354
490

Plug-and-play image optimization for Nuxt applications.

838
158

ESlint config used for Nuxt

224
36

Events

started
Created at 9 minutes ago
started
Created at 30 minutes ago
push

fix: support digits

Created at 33 minutes ago
push

perf(vite): use compiled regexp for test (#18646)

fix(kit): avoid adding already installed modules to internal _installedModules (#18647)

Merge branch 'main' into feat/config-type-hints

Created at 42 minutes ago
push

docs: add note about removing .env file

Created at 44 minutes ago
issue comment
feat(schema): add type hints for runtime config

  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

Created at 45 minutes ago
pull request opened
feat(schema): add type hints for runtime config

🔗 Linked issue

https://github.com/nuxt/nuxt/pull/18594#discussion_r1090512835

❓ Type of change

  • [ ] 📖 Documentation (updates to the documentation or readme)
  • [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
  • [x] 👌 Enhancement (improving an existing functionality like performance)
  • [ ] ✨ New feature (a non-breaking change that adds functionality)
  • [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This PR adds type hints (within nuxt.config only, not within useRuntimeConfig) to advise on the way to override runtime config:

I would value some testing on this and improving the algorithm to make sure we are matching scule. (We might also move into scule itself if you like @pi0, and that way we could add more type tests there.)

BTW, I initially considered using https://github.com/sindresorhus/type-fest/blob/main/source/snake-case.d.ts but there were issues with it (e.g. baseURL and PascalCase both gave incorrect results) and I thought better to take a completely different approach.

📝 Checklist

  • [x] I have linked an issue or discussion.
  • [ ] I have updated the documentation accordingly.
Created at 45 minutes ago
push

fix: correct some issues with snake-case type utility

Created at 48 minutes ago
opened issue
Webpack Watcher not Working on Vagrant Shared Folder

Environment


  • Operating System: Linux
  • Node Version: v16.19.0
  • Nuxt Version: 3.1.1
  • Nitro Version: 2.1.1
  • Package Manager: yarn@1.22.19
  • Builder: webpack
  • User Config: builder, webpack, extensions, watchers
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/BakoviDagi/nuxt-3-webpack-watcher-repro

Describe the bug

When running nuxt dev inside of Vagrant, I'm unable to get the client bundle to use poll as a watch option. I've managed to figure out how to watch the config file and the server bundle, but I need to restart the build every time to update the client bundle.

As a side note, the config in my repro should probably be documented somewhere, because I couldn't find that anywhere and it took a lot of trial/error and debugging just to get to this halfway point.

Additional context

No response

Logs

No response

Created at 50 minutes ago
started
Created at 51 minutes ago
started
Created at 1 hour ago
started
Created at 1 hour ago
opened issue
@nuxt/content module with builder: 'webpack' fails to compile with multiple errors

Environment

  • Operating System: Windows_NT
  • Node Version: v16.16.0
  • Nuxt Version: 3.1.1
  • Nitro Version: 2.1.1
  • Package Manager: npm@9.2.0
  • Builder: webpack
  • User Config: modules, builder
  • Runtime Modules: @nuxt/content@2.4.3
  • Build Modules: -

Reproduction

https://github.com/1-oh-1/content-app

Describe the bug

When using @nuxt/content with builder: 'webpack' set in a nuxt.config.js file, the build fails to compile with multiple sets of errors.

The first set is several Module not found errors:

Module not found: Error: Can't resolve './<file>' in ''<root>\content-app\node_modules\@nuxt\content\dist\runtime\<folder>'
Did you mean '<file>.mjs'?
BREAKING CHANGE: The request './<file>' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

The second set is several Module parse failed errors (perhaps related to <script setup lang="ts"> in runtime/components?) :

Module parse failed: Unexpected token (<line>)                                                  
File was processed with these loaders:
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.

1. ```

### Additional context

_No response_

### Logs

```shell
2 of the 10 compile errors:

ERROR  in ./node_modules/@nuxt/content/dist/runtime/components/Prose/ProseImg.vue?vue&type=template&id=b2fd1394&ts=true
Module parse failed: Unexpected token (5:27)                                                  friendly-errors 16:15:06
File was processed with these loaders:
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/vue-loader/dist/templateLoader.js
* ./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| const _hoisted_1 = ["src", "alt", "width", "height"]
|
> export function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {
|   return (_openBlock(), _createElementBlock("img", {
|     src: $setup.refinedSrc,
                                                                                             friendly-errors 16:15:06

ERROR  in ./node_modules/@nuxt/content/dist/runtime/composables/navigation.mjs               friendly-errors 16:15:06

Module not found: Error: Can't resolve './client-db' in '\content-app\node_modules\@nuxt\content\dist\runtime\composables'
Did you mean 'client-db.mjs'?
BREAKING CHANGE: The request './client-db' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
Created at 1 hour ago
started
Created at 2 hours ago
issue comment
chore(deps): update devdependency @nuxt/image-edge to v1.0.0-27919678.2f5b64b

The latest updates on your projects. Learn more about Vercel for Git ↗︎

| Name | Status | Preview | Updated | | :--- | :----- | :------ | :------ | | nuxt-new | ✅ Ready (Inspect) | Visit Preview | Jan 31, 2023 at 9:33PM (UTC) |

Created at 2 hours ago

chore(deps): update devdependency @nuxt/image-edge to v1.0.0-27919678.2f5b64b

Created at 2 hours ago
delete branch
renovate[bot] delete branch renovate/patch-nuxt
Created at 2 hours ago
pull request closed
chore(deps): update devdependency @nuxt/image-edge to v1.0.0-27919678.2f5b64b

Mend Renovate

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | @nuxt/image-edge | 1.0.0-27913696.5d122a3 -> 1.0.0-27919678.2f5b64b | age | adoption | passing | confidence |


Release Notes

v1.0.0-27919678.2f5b64b

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Created at 2 hours ago
pull request opened
chore(deps): update devdependency @nuxt/image-edge to v1.0.0-27919678.2f5b64b

Mend Renovate

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | @nuxt/image-edge | 1.0.0-27913696.5d122a3 -> 1.0.0-27919678.2f5b64b | age | adoption | passing | confidence |


Release Notes

v1.0.0-27919678.2f5b64b

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Created at 2 hours ago
started
Created at 2 hours ago
started
Created at 2 hours ago
push

test(nuxt): exclude new internal vue assertNumber helper

docs: updated unreachable docus url in documentation (#18618)

docs: add link to pages documentation to routing (#18602)

docs: add comment about needing to install @types/node manually

docs: add note about directory import

docs: fix array syntax

fix(kit): don't use default export of defu (#18589)

fix: use named export from defu in all places (#18624)

fix(nuxt): dedupe vue-router (#18626)

fix(test-utils): prevent orphaned processes and use baseURL when loading (#18623)

perf(nuxt): simplify generated variable names (#18629)

fix(vite): ensure __publicAssetsURL set before loading assets (#18642)

docs: fix buttons width on getting started(#18643)

  • docs(landing): fix getting started card buttons

  • docs: remove content

docs: add example

docs: add note about app config

perf(vite): use compiled regexp for test (#18646)

fix(kit): avoid adding already installed modules to internal _installedModules (#18647)

Merge remote-tracking branch 'origin/main' into docs/runtime-config

Created at 2 hours ago
issue comment
[GUIDE/FIX] installing on M1 (Apple Silicon) Macs: npm ERR! sharp Prebuilt libvips 8.10.5 binaries are not yet available for darwin-arm64v8

My error code was slightly different since it included:

env: python: No such file or directory

Adding a symlink so the compile script could locate python fixed it for me:

ln -s -f /usr/local/bin/python3 /usr/local/bin/python

More info here: https://stackoverflow.com/questions/71468590/env-python-no-such-file-or-directory-when-building-app-with-xcode

Created at 2 hours ago