gvkhna / astro-media Goto Github PK
View Code? Open in Web Editor NEWastro plugin for working with images/assets/svg vectors etc
astro plugin for working with images/assets/svg vectors etc
i can't run it do i need also astro-image ?
๐ [start] Running command "astro dev"
Failed to load url cheerio (resolved id: cheerio) in /home/manjaro/DEV/uno test/marina copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro-media/integration/lib/get-image.ts. Does the file exist?
02:38:45 [vite] Error when evaluating SSR module /node_modules/.pnpm/[email protected][email protected]/node_modules/astro-media/integration/lib/get-image.ts: failed to import "cheerio"
|- Error: Cannot find module 'cheerio' imported from '/home/manjaro/DEV/uno test/marina copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro-media/integration/lib/get-image.ts'
at nodeImport (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55873:25)
at ssrImport (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55775:30)
at eval (eval at instantiateModule (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55834:28), <anonymous>:4:37)
at async instantiateModule (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55837:9)
02:38:45 [vite] Error when evaluating SSR module /node_modules/.pnpm/[email protected][email protected]/node_modules/astro-media/integration/index.ts: failed to import "/node_modules/.pnpm/[email protected][email protected]/node_modules/astro-media/integration/lib/get-image.ts"
|- Error: Cannot find module 'cheerio' imported from '/home/manjaro/DEV/uno test/marina copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro-media/integration/lib/get-image.ts'
at nodeImport (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55873:25)
at ssrImport (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55775:30)
at eval (eval at instantiateModule (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55834:28), <anonymous>:4:37)
at async instantiateModule (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55837:9)
02:38:45 [vite] Error when evaluating SSR module /home/manjaro/DEV/uno test/marina copie/astro.config.mjs: failed to import "/node_modules/.pnpm/[email protected][email protected]/node_modules/astro-media/integration/index.ts"
|- Error: Cannot find module 'cheerio' imported from '/home/manjaro/DEV/uno test/marina copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro-media/integration/lib/get-image.ts'
at nodeImport (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55873:25)
at ssrImport (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55775:30)
at eval (eval at instantiateModule (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55834:28), <anonymous>:4:37)
at async instantiateModule (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55837:9)
02:38:45 [astro] Unable to load /home/manjaro/DEV/uno test/marina copie/astro.config.mjs
error Cannot find module 'cheerio' imported from '/home/manjaro/DEV/uno test/marina copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro-media/integration/lib/get-image.ts'
Error: Cannot find module 'cheerio' imported from '/home/manjaro/DEV/uno test/marina copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro-media/integration/lib/get-image.ts'
at nodeImport (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55873:25)
at ssrImport (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55775:30)
at eval (eval at instantiateModule (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55834:28), <anonymous>:4:37)
at async instantiateModule (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-439026c8.js:55837:9)
error Cannot read properties of undefined (reading 'map')
File:
/home/manjaro/DEV/uno test/marina copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro/dist/events/error.js:21:34
Code:
20 | cliCommand: cmd,
> 21 | configErrorPaths: err.issues.map((issue) => issue.path.join("."))
| ^
22 | };
23 | return [{ eventName: EVENT_ERROR, payload }];
24 | }
Stacktrace:
TypeError: Cannot read properties of undefined (reading 'map')
at eventConfigError (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro/dist/events/error.js:21:34)
at handleConfigError (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro/dist/cli/index.js:126:45)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro/dist/cli/index.js:192:5
at async runCommand (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro/dist/cli/index.js:186:76)
at async cli (file:///home/manjaro/DEV/uno%20test/marina%20copie/node_modules/.pnpm/[email protected][email protected]/node_modules/astro/dist/cli/index.js:260:5)
โ [start] Failed with exit status 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.