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

vite-plugin-checkerを使用したビルドでエラーが発生する。 #7

Closed
Tsubasa0129ti opened this issue Mar 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Tsubasa0129ti
Copy link
Owner

発生したエラー

開発用ビルド実施時に以下のようなエラーが発生している。なお、本番用ビルドでは同様の現象が発生していない。
開発用ビルドでは、型チェックにvite-plugin-checkerを使用しており、これが原因ではないかと考えている。

$ yarn run build
error during build:
Error: Cannot find module 'vue-tsc/out/index'
Require stack:
- /Users/inouetsubasa/application_template/template/web/node_modules/vite-plugin-checker/dist/esm/checkers/vueTsc/prepareVueTsc.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1142:15)
    at Function.resolve (node:internal/modules/helpers:190:19)
    at file:///Users/inouetsubasa/application_template/template/web/node_modules/vite-plugin-checker/dist/esm/checkers/vueTsc/prepareVueTsc.js:11:31
    at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
    at async createCheckers (file:///Users/inouetsubasa/application_template/template/web/node_modules/vite-plugin-checker/dist/esm/main.js:30:37)
    at async config (file:///Users/inouetsubasa/application_template/template/web/node_modules/vite-plugin-checker/dist/esm/main.js:63:18)
    at async runConfigHook (file:///Users/inouetsubasa/application_template/template/web/node_modules/vite/dist/node/chunks/dep-jvB8WLp9.js:68303:25)
    at async resolveConfig (file:///Users/inouetsubasa/application_template/template/web/node_modules/vite/dist/node/chunks/dep-jvB8WLp9.js:67760:14)
    at async build (file:///Users/inouetsubasa/application_template/template/web/node_modules/vite/dist/node/chunks/dep-jvB8WLp9.js:66874:20)
@Tsubasa0129ti Tsubasa0129ti added the bug Something isn't working label Mar 16, 2024
@Tsubasa0129ti Tsubasa0129ti self-assigned this Mar 16, 2024
@Tsubasa0129ti
Copy link
Owner Author

vue-tscのバージョン2以降が非対応らしい。fi3ework/vite-plugin-checker#306
そのため、ひとまずはダウングレードする。

Tsubasa0129ti added a commit that referenced this issue Mar 16, 2024
…erを使用したビルドでエラーが発生する。

Feature/#7 vite plugin checkerを使用したビルドでエラーが発生する。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant