0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Vite] vue/server-renderer, updating...でコケたときの対処

Last updated at Posted at 2022-02-08

rm -rf node_modules && npm i をやってコケる

yarn dev として起動しようとすると、、
以下のようなエラーとなった。

15:30:37 [vite] new dependencies found: vue/server-renderer, updating...
15:30:38 [vite] Failed to load source map for /node_modules/.vite/vuex.js?v=f58e6f60.
15:30:38 [vite] Failed to load source map for /node_modules/.vite/vue-router.js?v=f58e6f60.
15:30:44 [vite] Failed to load source map for /node_modules/.vite/chunk-ZHXWWURZ.js?v=f58e6f60.
15:31:14 [vite] Failed to load source map for /node_modules/.vite/chunk-KCDUG5KQ.js?v=f58e6f60.
15:31:19 [vite] Failed to load source map for /node_modules/.vite/element-plus.js?v=f58e6f60.
15:31:20 [vite] ✨ dependencies updated, reloading page...

Vite の Issue で以下を発見

package.jsonを直接編集して、以下のバージョンへアップデート

    @vitejs/plugin-vue: ^1.10.0-beta.1 => 1.10.0-beta.1 
    vite: 2.7.0-beta.8 => 2.7.0-beta.8 

エラー回避できました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?