vuepress / ecosystem

Official plugins and themes for VuePress2
https://ecosystem.vuejs.press
MIT License
19 stars 25 forks source link

[Bug report] Failed to resolve import "@vuepress/plugin-theme-data/client" #206

Closed lamngockhuong closed 1 week ago

lamngockhuong commented 1 week ago

Description

Hi,

I got some errors when accessing my page on dev server running. I tried to switch to yarn, but it still got the error

6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
6:04:36 PM [vite] Internal server error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?
  Plugin: vite:import-analysis
  File: /Users/lamngockhuong/develop/projects/vndevteam/nestjs-boilerplate/.vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2:2:91
  1  |  // node_modules/.pnpm/@vuepress+theme-default@2.0.0-rc.35_typescript@5.4.5_vuepress@2.0.0-rc.13_@vuepress+bundler-v_wb7jxmu4qwujt6zhb6hwer2bta/node_modules/@vuepress/theme-default/lib/client/composables/useThemeData.js
  2  |  import { useThemeData as _useThemeData, useThemeLocaleData as _useThemeLocaleData } from "@vuepress/plugin-theme-data/client";
     |                                                                                            ^
  3  |  var useThemeData = () => _useThemeData();
  4  |  var useThemeLocaleData = () => _useThemeLocaleData();
      at formatError (file:///Users/lamngockhuong/develop/projects/vndevteam/nestjs-boilerplate/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_lightningcss@1.25.1_sass@1.77.4_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-DEPSZ3SS.js:52009:46)
      at TransformContext.error (file:///Users/lamngockhuong/develop/projects/vndevteam/nestjs-boilerplate/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_lightningcss@1.25.1_sass@1.77.4_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-DEPSZ3SS.js:52003:19)
      at normalizeUrl (file:///Users/lamngockhuong/develop/projects/vndevteam/nestjs-boilerplate/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_lightningcss@1.25.1_sass@1.77.4_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-DEPSZ3SS.js:67306:33)
      at async file:///Users/lamngockhuong/develop/projects/vndevteam/nestjs-boilerplate/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_lightningcss@1.25.1_sass@1.77.4_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-DEPSZ3SS.js:67461:47
      at async Promise.all (index 0)
      at async TransformContext.transform (file:///Users/lamngockhuong/develop/projects/vndevteam/nestjs-boilerplate/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_lightningcss@1.25.1_sass@1.77.4_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-DEPSZ3SS.js:67382:13)
      at async Object.transform (file:///Users/lamngockhuong/develop/projects/vndevteam/nestjs-boilerplate/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_lightningcss@1.25.1_sass@1.77.4_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-DEPSZ3SS.js:52318:30)
      at async loadAndTransform (file:///Users/lamngockhuong/develop/projects/vndevteam/nestjs-boilerplate/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_lightningcss@1.25.1_sass@1.77.4_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-DEPSZ3SS.js:55073:29)
6:04:36 PM [vite] Pre-transform error: Failed to resolve import "@vuepress/plugin-theme-data/client" from ".vuepress/.cache/deps/chunk-L74U7JKX.js?v=cbc4fbd2". Does the file exist?

Reproduction

github.com/vndevteam/nestjs-boilerplate

Used Package Manager

pnpm

System Info

System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 309.45 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.10.0/bin/yarn
    npm: 10.5.0 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 9.3.0 - ~/.nvm/versions/node/v20.10.0/bin/pnpm
    bun: Not Found
  Utilities:
    Git: 2.39.3 - /usr/bin/git
  Browsers:
    Chrome: 126.0.6478.61
    Edge: Not Found
    Safari: 17.5
  npmPackages:
    @vuepress/bundler-vite: 2.0.0-rc.13 => 2.0.0-rc.13 
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli: Not Found
    @vuepress/client: 2.0.0-rc.13 => 2.0.0-rc.13 
    @vuepress/core: 2.0.0-rc.13 => 2.0.0-rc.13 
    @vuepress/markdown: Not Found
    @vuepress/shared: 2.0.0-rc.13 => 2.0.0-rc.13 
    @vuepress/utils: 2.0.0-rc.13 => 2.0.0-rc.13 
    vue: 3.4.29 => 3.4.29 
    vue-router: Not Found
    vuepress: 2.0.0-rc.13 => 2.0.0-rc.13

image

Mister-Hope commented 1 week ago

https://github.com/vuepress/ecosystem/commit/ba09b873cb525af4494d5b42663dee3e97b85bbe