Code Monkey home page Code Monkey logo

Comments (7)

kota-nakagawa avatar kota-nakagawa commented on July 30, 2024 1

@harlan-zw

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.

harlan-zw avatar harlan-zw commented on July 30, 2024 1

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.

Lehoczky avatar Lehoczky commented on July 30, 2024 1

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.

harlan-zw avatar harlan-zw commented on July 30, 2024

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.

harlan-zw avatar harlan-zw commented on July 30, 2024

Going to close for now as stale, please feel free to re-open if the above doesn't work

from sitemap.

Lehoczky avatar Lehoczky commented on July 30, 2024

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.

harlan-zw avatar harlan-zw commented on July 30, 2024

Upgrade your stylelint / eslint

from sitemap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.