utils icon indicating copy to clipboard operation
utils copied to clipboard

Unnable to run the simple-form example

Open marcitqualab opened this issue 1 year ago • 0 comments

Describe the bug I am just trying to run the simple-form example of the repo and I get an error when I run de dev server.

Steps to reproduce:

  1. Clone the repo
  2. Open in VScode
  3. Run. pnpm install and pnpm run dev
  4. Got the following error.
 simple-form git:(main) ✗ pnpm run build

> [email protected] build /home/madpad/backups/Marc/ItQuaLab/projects/taa/utils/examples/simple-form
> astro check && astro build

11:52:18 [vite] Pre-transform error: Failed to load url @astro-utils/forms/dist/integration.js (resolved id: @astro-utils/forms/dist/integration.js) in /home/madpad/backups/Marc/ItQuaLab/projects/taa/utils/examples/simple-form/astro.config.mjs. Does the file exist?
11:52:18 [vite] Error when evaluating SSR module /home/madpad/backups/Marc/ItQuaLab/projects/taa/utils/examples/simple-form/astro.config.mjs: failed to import "@astro-utils/forms/dist/integration.js"
|- Error: Cannot find module '@astro-utils/forms/dist/integration.js' imported from '/home/madpad/backups/Marc/ItQuaLab/projects/taa/utils/examples/simple-form/astro.config.mjs'
    at nodeImport (file:///home/madpad/backups/Marc/ItQuaLab/projects/taa/utils/examples/simple-form/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52979:19)
    at ssrImport (file:///home/madpad/backups/Marc/ItQuaLab/projects/taa/utils/examples/simple-form/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52846:22)
    at eval (/home/madpad/backups/Marc/ItQuaLab/projects/taa/utils/examples/simple-form/astro.config.mjs:5:37)
    at async instantiateModule (file:///home/madpad/backups/Marc/ItQuaLab/projects/taa/utils/examples/simple-form/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52904:5)

[astro] Unable to load your Astro config

 ELIFECYCLE  Command failed with exit code 1.

I am not sure if I need to generate the missing dependency "@astro-utils/forms/dist/integration.js" or I need to fix the dependency?

How can I run this example?

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • IDE. VsCode
  • Package manager. pnpm
  • Node.js version. v21.7.3

marcitqualab avatar Sep 04 '24 03:09 marcitqualab