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

Error while building application #268

Open
kucherenko opened this issue Jul 12, 2022 · 3 comments
Open

Error while building application #268

kucherenko opened this issue Jul 12, 2022 · 3 comments

Comments

@kucherenko
Copy link

I have an issue with the building of project:

Based on the output I can see few issues, but can't find any solution for that:

> vite-ssg build


[vite-ssg] Build for client...
vite v2.9.12 building for production...
✓ 457 modules transformed.
dist/index.html                                0.89 KiB
dist/manifest.webmanifest                      0.38 KiB
dist/ssr-manifest.json                         23.00 KiB
dist/assets/virtual_pwa-register.a5cf61fc.js   5.53 KiB / gzip: 2.31 KiB
dist/assets/README.a6458c04.js                 1.37 KiB / gzip: 0.63 KiB
dist/assets/route-block.9b0645f8.js            0.02 KiB / gzip: 0.04 KiB
dist/assets/_...all_.d5194b8f.js               0.77 KiB / gzip: 0.43 KiB
dist/assets/about.416a84d7.js                  1.92 KiB / gzip: 0.80 KiB
dist/assets/_name_.74663c88.js                 0.98 KiB / gzip: 0.58 KiB
dist/assets/profile.44c997b1.js                2.84 KiB / gzip: 1.20 KiB
dist/assets/_slug_.90db0c57.js                 6.61 KiB / gzip: 2.07 KiB
dist/assets/README.4499d3cd.css                0.83 KiB / gzip: 0.42 KiB
dist/assets/app.775ea3d6.css                   80.77 KiB / gzip: 13.85 KiB
dist/assets/app.7dd135ba.js                    460.67 KiB / gzip: 137.33 KiB

PWA v0.12.0
mode      generateSW
precache  15 entries (563.20 KiB)
files generated
  dist/sw.js
  dist/workbox-04207ca7.js

[vite-ssg] Build for server...
vite v2.9.12 building SSR bundle for production...
transforming (73) src/components/molecules/workshop/Starters.vue"$" is imported from external module "vue/macros" but never used in "src/components/molecules/Toast.vue".
✓ 87 modules transformed.
.vite-ssg-temp/manifest.webmanifest        0.38 KiB
.vite-ssg-temp/main.mjs                    192.79 KiB
.vite-ssg-temp/assets/style.6db7ba24.css   92.39 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:464
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/apk/Workspace/lab/pakipaki/node_modules/.pnpm/[email protected]/node_modules/vue/macros.d.ts
    at new NodeError (node:internal/errors:371:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:87:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:102:38)
    at defaultLoad (node:internal/modules/esm/load:21:14)
    at ESMLoader.load (node:internal/modules/esm/loader:359:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:280:58)
    at new ModuleJob (node:internal/modules/esm/module_job:66:26)
    at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:297:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:261:34)
    at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:81:21) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
 ELIFECYCLE  Command failed with exit code 1.
  1. transforming (73) src/components/molecules/workshop/Starters.vue"$" is imported from external module "vue/macros" but never
  2. TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for

Could you please help with the issue?

@dennisaga
Copy link

@daniel-aschehoug
Copy link

Same issue here.

@davirds
Copy link

davirds commented Mar 28, 2023

same issue here.

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

No branches or pull requests

4 participants