Skip to content

fix: patch vite-plugin-ember to resolve ERR_UNKNOWN_FILE_EXTENSION build failure#3

Merged
gossi merged 1 commit into
gossi:mainfrom
NullVoxPopuli-ai-agent:fix/patch-vite-plugin-ember-vue-ssr
Apr 20, 2026
Merged

fix: patch vite-plugin-ember to resolve ERR_UNKNOWN_FILE_EXTENSION build failure#3
gossi merged 1 commit into
gossi:mainfrom
NullVoxPopuli-ai-agent:fix/patch-vite-plugin-ember-vue-ssr

Conversation

@NullVoxPopuli-ai-agent
Copy link
Copy Markdown
Contributor

The docs build is currently failing with:

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".vue" for .../vite-plugin-ember/src/vitepress/code-preview.vue

The published vite-plugin-ember@0.4.0 dist imports a raw .vue source file dynamically, which Node.js ESM can't load during VitePress SSR. A fix is pending upstream at aklkv/vite-plugin-ember#44.

This PR applies that fix as a pnpm patch so the docs build works today without waiting for a new release.

Once vite-plugin-ember ships a release with the fix merged, this patch and the pnpm.patchedDependencies entry in package.json can be removed.

… build

Applies the fix from aklkv/vite-plugin-ember#44 as a pnpm patch.

The published dist/vitepress/setup.js dynamically imports
code-preview.vue from source, which Node ESM cannot load during
VitePress SSR. The patch replaces that import with a compiled
.js render-function equivalent.

Ref: aklkv/vite-plugin-ember#44
@gossi gossi merged commit 4e0019b into gossi:main Apr 20, 2026
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

Successfully merging this pull request may close these issues.

3 participants