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
There is a dependency conflict with @antfu/eslint-config-vue. When the eslint plugin is installed, Nuxt throws:
ERROR [worker reload] [worker init] The requested module 'PROJECT-DIR/node_modules/.pnpm/unist-util-stringify-position@2.0.3/node_modules/unist-util-stringify-position/index.js' does not provide an export named 'stringifyPosition'
import { stringifyPosition } from 'node_modules/.pnpm/unist-util-stringify-position@2.0.3/node_modules/unist-util-stringify-position/index.js';
^^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'node_modules/.pnpm/unist-util-stringify-position@2.0.3/node_modules/unist-util-stringify-position/index.js' does not provide an export named 'stringifyPosition'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:122:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:188:5)
at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24)
at async loadESM (node:internal/process/esm_loader:40:7)
at async handleMainPromise (node:internal/modules/run_main:66:12)
I think that's because @antfu/eslint-config-vue depends on an older version of unist-util-stringify-position and it gets hoisted.
@phojie, if it's a blocker you can just install both dependencies.
pnpm i -d mdast-util-to-string unist-util-stringify-position
I had actually tried it in v3 before, and it wasn't working. However, I tried it again with the latest version, which is v4, and it's working. Thanks, man!
Environment
Linux
v20.5.0
3.7.1
3.8.3
2.6.3
pnpm@8.7.5
-
devServer
,app
,routeRules
,alias
,modules
,extends
,content
,experimental
,vite
,css
,typescript
,devtools
@vueuse/nuxt@10.4.1
,@unocss/nuxt@0.55.7
,@nuxt/content@2.8.2
-
Reproduction
Clone, install, and run dev command
https://github.com/ijkml/nuxt-starter/tree/main
Describe the bug
There is a dependency conflict with
@antfu/eslint-config-vue
. When the eslint plugin is installed, Nuxt throws:I think that's because
@antfu/eslint-config-vue
depends on an older version ofunist-util-stringify-position
and it gets hoisted.pnpm why unist-util-stringify-position
gives (truncated):I tried setting
strict-peer-dependencies=true
, but that didn't help. Installing these dependencies manually resolves the issue.Could it be related to #2063? Not same, but similar issue. It was fixed by #2066 but later removed. Maybe adding them as dependencies could fix this?
Additional context
content/src/runtime/transformers/csv/from-csv.ts
Lines 5 to 7 in cf46ed7
Logs
No response
The text was updated successfully, but these errors were encountered: