Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnable to run the simple-form example #4

Open
marcitqualab opened this issue Sep 4, 2024 · 0 comments
Open

Unnable to run the simple-form example #4

marcitqualab opened this issue Sep 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@marcitqualab
Copy link

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

> simple-form@0.0.1 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/vite@5.4.3/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/vite@5.4.3/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/vite@5.4.3/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 marcitqualab added the bug Something isn't working label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant