Replies: 13 comments 4 replies
-
your repository is private ? 404 |
Beta Was this translation helpful? Give feedback.
-
sorry my mistake, changed it to public |
Beta Was this translation helpful? Give feedback.
-
Same with Swiper: [vite-ssg] An internal error occurred. TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css" for /my-path/node_modules/.pnpm/swiper@8.1.3/node_modules/swiper/swiper.min.css |
Beta Was this translation helpful? Give feedback.
-
@ztxone check this #191 (comment) |
Beta Was this translation helpful? Give feedback.
-
@8bu I have it working removing [vite-ssg] An internal error occurred.
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
file:///F:/work/projects/quini/GitHub/issue-repro/vite-ssg-error-element-plus/node_modules/.pnpm/element-plus@2.1.10_vue@3.2.33/node_modules/element-plus/es/components/popper/src/content.mjs:1
import { placements } from '@popperjs/core';
^^^^^^^^^^
SyntaxError: Named export 'placements' not found. The requested module '@popperjs/core' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@popperjs/core';
const { placements } = pkg; |
Beta Was this translation helpful? Give feedback.
-
Have u try to change vite/ssg build mode to cjs? |
Beta Was this translation helpful? Give feedback.
-
@8bu patching //import { placements } from '@popperjs/core';
import * as pkg from '@popperjs/core';
const { placements } = pkg; |
Beta Was this translation helpful? Give feedback.
-
Yes, the same error
We cannot fix it here |
Beta Was this translation helpful? Give feedback.
-
@8bu running the |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Unplugin resolver still not working, have to import the components & css manually . |
Beta Was this translation helpful? Give feedback.
-
You probably need to pass But quite large chunks are being generated: Is tree-shaking not working properly? I can count over 150 components in that file. |
Beta Was this translation helpful? Give feedback.
-
solution, here! |
Beta Was this translation helpful? Give feedback.
-
Description
Vite-SSG cannot build element-plus CSS
Reproduce
pnpm build
Beta Was this translation helpful? Give feedback.
All reactions