spohl
@nuxt/eslint on a monorepo
Hello,
i am havina nuxt3 project in a monorepo and i would like to make use of @nuxt/eslint.
But i would need to limit the rules to "apps/render".
I tried stuff like
But that doesn't work out:
Oops! Something went wrong! 😦
ESLint: 9.0.0
ConfigError: Config (unnamed): Unexpected key "0" found.
Any ideas how to solve this?
1 replies
Component loaded twice on layout change
If you want to change the layout programmatic the component is re-loaded.
It would be nice pro prevent this as deferred components and requests are also restarted.
It can be reproduced with this code:
You will find the console log twice.
Maybe there is a better way to handle the layout change without being mounted?
Here is a reproduction: https://stackblitz.com/edit/github-xhfdq1-de15an?file=src%2Fpages%2F[...all].vue,src%2Flayouts%2Fblank.vue,src%2Flayouts%2Fdefault.vue
1 replies
i18n not working with static site generation
Hi,
i try to create static sites (ssr:false).
When i launch the site i hit: "GET file:///i18n-config-3b43adf8.js net::ERR_FILE_NOT_FOUND"
This file is not generated at all, but a familar one: "i18n.config.64f65730.js".
Originated from: "i18n.options.2fc0184e.js" , find the code below.
Running in dev mode everything running smooth..
In this static mode, there is not vite at all involved (file://).
Not sure how to tackle this one, any idea much appreciated.
2 replies