Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxt 3.7 unstorage no such file or directory #22828

Closed
productdevbook opened this issue Aug 26, 2023 · 11 comments
Closed

nuxt 3.7 unstorage no such file or directory #22828

productdevbook opened this issue Aug 26, 2023 · 11 comments

Comments

@productdevbook
Copy link
Sponsor Member

productdevbook commented Aug 26, 2023

Environment


  • Operating System: Linux
  • Node Version: v18.17.1
  • Nuxt Version: 3.7.0
  • CLI Version: 3.7.0
  • Nitro Version: 2.6.1
  • Package Manager: pnpm@8.6.9
  • Builder: -
  • User Config: app, extends, modules, pinceau, oku, components, plausible, routeRules
  • Runtime Modules: v-plausible@1.0.2, @nuxt/devtools@0.8.0, @nuxtjs/tailwindcss@6.8.0, @vueuse/nuxt@10.4.0, @nuxthq/studio@0.13.4, app/module
  • Build Modules: -

Reproduction

oku-ui/oku-ui.com#56

Describe the bug

Could not load /home/productdevbook/oku-ui/docs/node_modules/.pnpm/unstorage@1.8.0/node_modules/unstorage/drivers/fs-lite.mjs (imported by virtual:#internal/nitro/virtual/storage): ENOENT: no such file or directory, open '/home/productdevbook/oku-ui/docs/node_modules/.pnpm/unstorage@1.8.0/node_modules/unstorage/drivers/fs-lite.mjs'

Additional context

No response

Logs

Could not load /home/productdevbook/oku-ui/docs/node_modules/.pnpm/unstorage@1.8.0/node_modules/unstorage/drivers/fs-lite.mjs (imported by virtual:#internal/nitro/virtual/storage): ENOENT: no such file or directory, open '/home/productdevbook/oku-ui/docs/node_modules/.pnpm/unstorage@1.8.0/node_modules/unstorage/drivers/fs-lite.mjs'
Copy link
Member

Sounds like an old version of unstorage is still installed. Would you check your lockfile to confirm, and refresh it?

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2023
@productdevbook
Copy link
Sponsor Member Author

productdevbook commented Aug 26, 2023

yes, iam delete lockfile and re install this pr. dont fixed

Copy link
Member

did you check whether an old version was still installed?

@productdevbook
Copy link
Sponsor Member Author

yes now checked

@github-actions
Copy link
Contributor

Would you be able to provide a reproduction? 🙏

More info

Why do I need to provide a reproduction?

Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.

What will happen?

If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.

If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.

How can I create a reproduction?

We have a couple of templates for starting with a minimal reproduction:

👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz
👉 https://codesandbox.io/s/github/nuxt/starter/v3-codesandbox

A public GitHub repository is also perfect. 👌

Please ensure that the reproduction is as minimal as possible. See more details in our guide.

You might also find these other articles interesting and/or helpful:

@nazar1ua
Copy link

You should delete not only lock file, but also node_modules/ just fixed it for me

@pi0
Copy link
Member

pi0 commented Aug 30, 2023

npx nuxi upgrade --force should do the trick to fix this issue. (it is sadly because of how package managers hoist multiple compatible versions of unstorage after each update)

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
@productdevbook
Copy link
Sponsor Member Author

npx nuxi upgrade --force

 WARN  [nuxt] Two component files resolving to the same name ProseTr:       7:49:49 AM

 - /Users/productdevbook/.repo/oku-ui/docs/node_modules/.pnpm/@nuxtjs+mdc@0.1.6_rollup@3.28.1/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTr.vue
 - /Users/productdevbook/.repo/oku-ui/docs/node_modules/.pnpm/@nuxt-themes+typography@0.11.0_postcss@8.4.29_rollup@3.28.1_vue@3.3.4/node_modules/@nuxt-themes/typography/components/global/ProseTr.vue


 WARN  [nuxt] Two component files resolving to the same name ProseUl:       7:49:49 AM

 - /Users/productdevbook/.repo/oku-ui/docs/node_modules/.pnpm/@nuxtjs+mdc@0.1.6_rollup@3.28.1/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseUl.vue
 - /Users/productdevbook/.repo/oku-ui/docs/node_modules/.pnpm/@nuxt-themes+typography@0.11.0_postcss@8.4.29_rollup@3.28.1_vue@3.3.4/node_modules/@nuxt-themes/typography/components/global/ProseUl.vue

ℹ ✨ optimized dependencies changed. reloading                             7:49:54 AM
ℹ Vite client warmed up in 4400ms                                          7:49:54 AM
✔ Nitro built in 2729 ms                                             nitro 7:49:55 AM

[7:49:55 AM]  ERROR  [worker reload] [worker init] The requested module 'file:///Users/productdevbook/.repo/oku-ui/docs/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:124:21)
  at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

@productdevbook
Copy link
Sponsor Member Author

3.7.3 npx nuxi upgrade --force same problem

oku-ui/oku-ui.com#69

@productdevbook
Copy link
Sponsor Member Author

productdevbook commented Sep 26, 2023

3.7.4 import { stringifyPosition } from 'node_modules/.pnpm/unist-util-stringify-position@2.0.3/node_modules/unist-util-stringify-position/index.js'; same problem

❯ pnpm why unist-util-stringify-position

❯ pnpm why unist-util-stringify-position
Legend: production dependency, optional only, dev only

oku-docs@0.2.0 /home/productdevbook/oku-ui/docs

devDependencies:
@antfu/eslint-config 1.0.0-beta.10
└─┬ eslint-plugin-markdown 3.0.1
  └─┬ mdast-util-from-markdown 0.8.5
    └── unist-util-stringify-position 2.0.3
@nuxt/content 2.8.2
└─┬ @nuxtjs/mdc 0.1.6
  ├─┬ rehype-external-links 2.1.0
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  ├─┬ rehype-raw 6.1.1
  │ ├─┬ hast-util-raw 7.2.3
  │ │ ├─┬ hast-util-from-parse5 7.1.2
  │ │ │ ├─┬ vfile 5.3.7
  │ │ │ │ ├── unist-util-stringify-position 3.0.3
  │ │ │ │ └─┬ vfile-message 3.1.4
  │ │ │ │   └── unist-util-stringify-position 3.0.3
  │ │ │ └─┬ vfile-location 4.1.0
  │ │ │   └─┬ vfile 5.3.7
  │ │ │     ├── unist-util-stringify-position 3.0.3
  │ │ │     └─┬ vfile-message 3.1.4
  │ │ │       └── unist-util-stringify-position 3.0.3
  │ │ └─┬ vfile 5.3.7
  │ │   ├── unist-util-stringify-position 3.0.3
  │ │   └─┬ vfile-message 3.1.4
  │ │     └── unist-util-stringify-position 3.0.3
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  ├─┬ rehype-slug 5.1.0
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  ├─┬ remark-gfm 3.0.1
  │ ├─┬ mdast-util-gfm 2.0.2
  │ │ ├─┬ mdast-util-from-markdown 1.3.1
  │ │ │ └── unist-util-stringify-position 3.0.3
  │ │ └─┬ mdast-util-gfm-table 1.0.7
  │ │   └─┬ mdast-util-from-markdown 1.3.1
  │ │     └── unist-util-stringify-position 3.0.3
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  ├─┬ remark-mdc 2.0.0
  │ ├─┬ mdast-util-from-markdown 2.0.0
  │ │ └── unist-util-stringify-position 4.0.0
  │ └─┬ unified 11.0.3
  │   └─┬ vfile 6.0.1
  │     ├── unist-util-stringify-position 4.0.0
  │     └─┬ vfile-message 4.0.2
  │       └── unist-util-stringify-position 4.0.0
  ├─┬ remark-parse 10.0.2
  │ ├─┬ mdast-util-from-markdown 1.3.1
  │ │ └── unist-util-stringify-position 3.0.3
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  ├─┬ remark-rehype 10.1.0
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  └─┬ unified 11.0.3
    └─┬ vfile 6.0.1
      ├── unist-util-stringify-position 4.0.0
      └─┬ vfile-message 4.0.2
        └── unist-util-stringify-position 4.0.0
@nuxtlabs/github-module 1.6.3
├─┬ remark-gfm 3.0.1
│ ├─┬ mdast-util-gfm 2.0.2
│ │ ├─┬ mdast-util-from-markdown 1.3.1
│ │ │ └── unist-util-stringify-position 3.0.3
│ │ └─┬ mdast-util-gfm-table 1.0.7
│ │   └─┬ mdast-util-from-markdown 1.3.1
│ │     └── unist-util-stringify-position 3.0.3
│ └─┬ unified 10.1.2
│   └─┬ vfile 5.3.7
│     ├── unist-util-stringify-position 3.0.3
│     └─┬ vfile-message 3.1.4
│       └── unist-util-stringify-position 3.0.3
└─┬ remark-github 11.2.4
  └─┬ unified 10.1.2
    └─┬ vfile 5.3.7
      ├── unist-util-stringify-position 3.0.3
      └─┬ vfile-message 3.1.4
        └── unist-util-stringify-position 3.0.3❯ pnpm why unist-util-stringify-position
Legend: production dependency, optional only, dev only

oku-docs@0.2.0 /home/productdevbook/oku-ui/docs

devDependencies:
@antfu/eslint-config 1.0.0-beta.10
└─┬ eslint-plugin-markdown 3.0.1
  └─┬ mdast-util-from-markdown 0.8.5
    └── unist-util-stringify-position 2.0.3
@nuxt/content 2.8.2
└─┬ @nuxtjs/mdc 0.1.6
  ├─┬ rehype-external-links 2.1.0
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  ├─┬ rehype-raw 6.1.1
  │ ├─┬ hast-util-raw 7.2.3
  │ │ ├─┬ hast-util-from-parse5 7.1.2
  │ │ │ ├─┬ vfile 5.3.7
  │ │ │ │ ├── unist-util-stringify-position 3.0.3
  │ │ │ │ └─┬ vfile-message 3.1.4
  │ │ │ │   └── unist-util-stringify-position 3.0.3
  │ │ │ └─┬ vfile-location 4.1.0
  │ │ │   └─┬ vfile 5.3.7
  │ │ │     ├── unist-util-stringify-position 3.0.3
  │ │ │     └─┬ vfile-message 3.1.4
  │ │ │       └── unist-util-stringify-position 3.0.3
  │ │ └─┬ vfile 5.3.7
  │ │   ├── unist-util-stringify-position 3.0.3
  │ │   └─┬ vfile-message 3.1.4
  │ │     └── unist-util-stringify-position 3.0.3
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  ├─┬ rehype-slug 5.1.0
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  ├─┬ remark-gfm 3.0.1
  │ ├─┬ mdast-util-gfm 2.0.2
  │ │ ├─┬ mdast-util-from-markdown 1.3.1
  │ │ │ └── unist-util-stringify-position 3.0.3
  │ │ └─┬ mdast-util-gfm-table 1.0.7
  │ │   └─┬ mdast-util-from-markdown 1.3.1
  │ │     └── unist-util-stringify-position 3.0.3
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  ├─┬ remark-mdc 2.0.0
  │ ├─┬ mdast-util-from-markdown 2.0.0
  │ │ └── unist-util-stringify-position 4.0.0
  │ └─┬ unified 11.0.3
  │   └─┬ vfile 6.0.1
  │     ├── unist-util-stringify-position 4.0.0
  │     └─┬ vfile-message 4.0.2
  │       └── unist-util-stringify-position 4.0.0
  ├─┬ remark-parse 10.0.2
  │ ├─┬ mdast-util-from-markdown 1.3.1
  │ │ └── unist-util-stringify-position 3.0.3
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  ├─┬ remark-rehype 10.1.0
  │ └─┬ unified 10.1.2
  │   └─┬ vfile 5.3.7
  │     ├── unist-util-stringify-position 3.0.3
  │     └─┬ vfile-message 3.1.4
  │       └── unist-util-stringify-position 3.0.3
  └─┬ unified 11.0.3
    └─┬ vfile 6.0.1
      ├── unist-util-stringify-position 4.0.0
      └─┬ vfile-message 4.0.2
        └── unist-util-stringify-position 4.0.0
@nuxtlabs/github-module 1.6.3
├─┬ remark-gfm 3.0.1
│ ├─┬ mdast-util-gfm 2.0.2
│ │ ├─┬ mdast-util-from-markdown 1.3.1
│ │ │ └── unist-util-stringify-position 3.0.3
│ │ └─┬ mdast-util-gfm-table 1.0.7
│ │   └─┬ mdast-util-from-markdown 1.3.1
│ │     └── unist-util-stringify-position 3.0.3
│ └─┬ unified 10.1.2
│   └─┬ vfile 5.3.7
│     ├── unist-util-stringify-position 3.0.3
│     └─┬ vfile-message 3.1.4
│       └── unist-util-stringify-position 3.0.3
└─┬ remark-github 11.2.4
  └─┬ unified 10.1.2
    └─┬ vfile 5.3.7
      ├── unist-util-stringify-position 3.0.3
      └─┬ vfile-message 3.1.4
        └── unist-util-stringify-position 3.0.3

@khaledOghli
Copy link

try pnpm add unstorage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants