For some reason, @astrojs/prism
. I have a hunch that's related to prismjs
vs how pnpm
resolves the dependencies. Anyhow, this repository contains 3 projects:
astro-npm
-> created vianpm create astro@latest
with: TS + empty +@astrojs/prism
+npm
astro-pnpm
-> created viapnpm create astro@latest
with: TS + empty +@astrojs/prism
+pnpm
vanilla-prism
-> created viapnpm create vite vanilla-prism --template vanilla
with: vanilla JS + vanillaprismjs
handling +pnpm
Projects 1 and 3 works just fine.
Project 2 throws the following error:
const components = require('../components.js');
^
const getLoader = require('../dependencies');
/**
* The set of all languages which have been loaded using the below function.
*
* @type {Set<string>}
*/
const loadedLanguages = new Set();
Check the README for each project.