Comments (7)
tanks for reply !
$ yarn why @nuxt/kit
yarn why v1.22.19
[1/4] ๐ค Why do we have the module "@nuxt/kit"...?
[2/4] ๐ Initialising dependency graph...
[3/4] ๐ Finding dependency...
[4/4] ๐ก Calculating file sizes...
=> Found "@nuxt/[email protected]"
info Reasons this module exists
- "nuxt" depends on it
- Hoisted from "nuxt#@nuxt#kit"
- Hoisted from "nuxt-simple-sitemap#@nuxt#kit"
- Hoisted from "@nuxt#devtools#@nuxt#kit"
- Hoisted from "@nuxtjs#google-fonts#@nuxt#kit"
- Hoisted from "@nuxtjs#stylelint-module#@nuxt#kit"
- Hoisted from "nuxt#@nuxt#vite-builder#@nuxt#kit"
- Hoisted from "nuxt#@nuxt#telemetry#@nuxt#kit"
info Disk size without dependencies: "128KB"
info Disk size with unique dependencies: "4.34MB"
info Disk size with transitive dependencies: "49.15MB"
info Number of shared dependencies: 97
โจ Done in 0.29s.
$ yarn why globby
yarn why v1.22.19
[1/4] ๐ค Why do we have the module "globby"...?
[2/4] ๐ Initialising dependency graph...
[3/4] ๐ Finding dependency...
[4/4] ๐ก Calculating file sizes...
=> Found "[email protected]"
info Has been hoisted to "globby"
info Reasons this module exists
- Hoisted from "stylelint#globby"
- Hoisted from "@typescript-eslint#parser#@typescript-eslint#typescript-estree#globby"
- Hoisted from "@nuxtjs#stylelint-module#stylelint-webpack-plugin#globby"
info Disk size without dependencies: "68KB"
info Disk size with unique dependencies: "496KB"
info Disk size with transitive dependencies: "1.37MB"
info Number of shared dependencies: 13
=> Found "nuxt#[email protected]"
info This module exists because "nuxt" depends on it.
info Disk size without dependencies: "40KB"
info Disk size with unique dependencies: "448KB"
info Disk size with transitive dependencies: "1.32MB"
info Number of shared dependencies: 12
=> Found "@nuxt/kit#[email protected]"
info This module exists because "nuxt#@nuxt#kit" depends on it.
info Disk size without dependencies: "40KB"
info Disk size with unique dependencies: "448KB"
info Disk size with transitive dependencies: "1.32MB"
info Number of shared dependencies: 12
=> Found "nitropack#[email protected]"
info This module exists because "nuxt#nitropack" depends on it.
info Disk size without dependencies: "40KB"
info Disk size with unique dependencies: "448KB"
info Disk size with transitive dependencies: "1.32MB"
info Number of shared dependencies: 12
โจ Done in 0.27s.
Here are the execution results.
from sitemap.
Here are the execution results.
Yup looks like you're using stylelint
which is depending on an old version.
You can try specifying the project version to try resolve it: yarn add globby@^13.1.3
, otherwise you may consider upgrading stylelint or adding a resolution rule to your package.json
from sitemap.
Thanks @harlan-zw!
I've already had the latest version for both of them, but I investigated a bit further, and found that the issue is caused by the gh-pages package, as it uses a very old globby release. Removing it solved the issue!
from sitemap.
Hey @kota-nakagawa, thanks for the issue :)
This is very strange, my guess is that you have an old version of globby from one of your dependencies.
The module itself doesn't use globby directly, it uses it through @nuxt/kit
.
Could you give me the output of the following:
yarn why @nuxt/kit
yarn why globby
You can try manually including "globby": "^13.1.3"
if it doesn't match this version
from sitemap.
Going to close for now as stale, please feel free to re-open if the above doesn't work
from sitemap.
Adding
"pnpm": {
"overrides": {
"globby": "^13.0.0"
}
},
to the package.json
solves the sitemap generation, but now eslint and stylint are failing because the new globby version is ESM only:
> eslint . --ext .js,.ts,.vue --max-warnings=0
Oops! Something went wrong! :(
ESLint: 8.40.0
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\ifjle\Projects\frontend-tools\node_modules\.pnpm\g[email protected]\node_modules\globby\index.js from C:\Users\ifjle\Projects\frontend-tools\node_modules\.pnpm\@[email protected][email protected]\node_modules\@typescript-eslint\typescript-estree\dist\parseSettings\resolveProjectList.js not supported.
> stylelint "./**/*.{css,vue}" --ignore-path=.gitignore
C:\Users\ifjle\Projects\frontend-tools\node_modules\.pnpm\s[email protected]\node_modules\stylelint\lib\printConfig.js:159
undefined
^
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\ifjle\Projects\frontend-tools\node_modules\.pnpm\g[email protected]\node_modules\globby\index.js from C:\Users\ifjle\Projects\frontend-tools\node_modules\.pnpm\s[email protected]\node_modules\stylelint\lib\printConfig.js not supported.
Instead change the require of index.js in C:\Users\ifjle\Projects\frontend-tools\node_modules\.pnpm\s[email protected]\node_modules\stylelint\lib\printConfig.js to a dynamic import() which is available in all CommonJS modules.
but I guess this is an upstream issue with @nuxt/kit
then, right?
from sitemap.
Upgrade your stylelint / eslint
from sitemap.
Related Issues (20)
- This XML Sitemap contains 0 URLs HOT 6
- Sitemap Caching โ sitemap.xml doesnโt update on Netlify host unless cacheMaxAgeSeconds is set to 0 HOT 4
- Image discovery can pull valid src values but invalid image:loc values such as data:, blob:, or file:
- Feature Request: Video Discovery HOT 2
- Various warning when running with Nuxt3
- "postinstall": "pnpm dev:prepare" issue HOT 5
- Cloudflare Pages fails because of dependency Node compatibility HOT 2
- ๅฆไฝๆทปๅ ้ขๅค็ๅ่ฎฎ HOT 4
- When only linking to an external site map is configured, the multiple-sitemaps warning should be canceled
- i18n: How to generate dynamic urls per language? HOT 7
- i18n: How to disable indexing of custom route paths (translated route paths) HOT 7
- [Bug] 5xx if too many pages & languages HOT 2
- Conditionally allow runtime logic to prevent dynamic sitemap creation from defineSitemapEventHandler
- Homepage down HOT 1
- Dynamic URLs with i18n will not automatically add a language prefix HOT 3
- False multi-sitemap warning HOT 1
- Sitemap URL returns 500 error when accessed directly HOT 1
- docs: subdomain routing + sitemap HOT 1
- fix: [xsl] project/website name (inside h2 tag) exposing project name from package.json without any ability to hide/change it HOT 1
- help: sitemap-lastmod feature is forced to transfer iso type HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sitemap.