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
`vite v2.9.13 building SSR bundle for production...
transforming (44) src/store/user.ts"$" is imported from external module "vue/macros" but never used in "src/components/Header.vue".
✓ 45 modules transformed.
.vite-ssg-temp/manifest.webmanifest 0.38 KiB
.vite-ssg-temp/main.mjs 140.01 KiB
.vite-ssg-temp/assets/style.6db5148f.css 77.52 KiB
[vite-ssg] An internal error occurred.
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
node:internal/errors:477
ErrorCaptureStackTrace(err);
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/denny/Code/sdk-web/node_modules/.pnpm/vue@3.2.37/node_modules/vue/macros.d.ts
at new NodeError (node:internal/errors:388:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:80:11)
at defaultGetFormat (node:internal/modules/esm/get_format:122:38)
at defaultLoad (node:internal/modules/esm/load:21:20)
at ESMLoader.load (node:internal/modules/esm/loader:431:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:350:22)
at new ModuleJob (node:internal/modules/esm/module_job:66:26)
at #createModuleJob (node:internal/modules/esm/loader:369:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:328:34)
at async ModuleWrap. (node:internal/modules/esm/module_job:82:21) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}`
Adding onto this, I'm experiencing a similar error. While the build command doesn't fail, I'm curious if anyone knows how to remove these errors.
[vite-ssg]Buildforserver...vitev3.1.0buildingSSRbundleforproduction...transforming(68)node_modules\.pnpm\swiper@8.3.2\node_modules\swiper\modules\pagination\pagination.min.cssErrorwhenusingsourcemapforreportinganerror: Can't resolve original location of error.Non-existent export '$' is imported from node_modules/.pnpm/vue@3.2.38/node_modules/vue/macros.d.ts
Describe the bug
Don't why it showing error when on building time.
`vite v2.9.13 building SSR bundle for production...
transforming (44) src/store/user.ts"$" is imported from external module "vue/macros" but never used in "src/components/Header.vue".
✓ 45 modules transformed.
.vite-ssg-temp/manifest.webmanifest 0.38 KiB
.vite-ssg-temp/main.mjs 140.01 KiB
.vite-ssg-temp/assets/style.6db5148f.css 77.52 KiB
[vite-ssg] An internal error occurred.
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
node:internal/errors:477
ErrorCaptureStackTrace(err);
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/denny/Code/sdk-web/node_modules/.pnpm/vue@3.2.37/node_modules/vue/macros.d.ts
at new NodeError (node:internal/errors:388:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:80:11)
at defaultGetFormat (node:internal/modules/esm/get_format:122:38)
at defaultLoad (node:internal/modules/esm/load:21:20)
at ESMLoader.load (node:internal/modules/esm/loader:431:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:350:22)
at new ModuleJob (node:internal/modules/esm/module_job:66:26)
at #createModuleJob (node:internal/modules/esm/loader:369:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:328:34)
at async ModuleWrap. (node:internal/modules/esm/module_job:82:21) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}`
there is no error in header component
Reproduction
https://github.com/dennisaga/vite-ssg-build-error-bug
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: