Hebilicious / form-actions-nuxt

Nuxt Module that implements Form Actions
https://form-actions-nuxt.pages.dev/
MIT License
126 stars 7 forks source link

Doesn't work together with `nuxt-auth-utils@0.2.0` module. #113

Open jonasfroeller opened 4 months ago

jonasfroeller commented 4 months ago

Environment



Reproduction

  1. Install nuxt-auth-utils@0.2.0
  2. Install @hebilicious/form-actions-nuxt@0.3.0
  3. Add both modules to nuxt.config.ts

The stackblitz.

Describe the bug

[13:38:59]  ERROR 
 ERROR(vue-tsc)  ';' expected.
 FILE  /home/projects/nuxt-starter-fsn7ah/.nuxt/types/loader-types.d.ts:18:16

    16 |           type LoaderUrl = 
    17 |
  > 18 |           type LoaderName = 
       |                ^^^^^^^^^^
    19 |
    20 |           
    21 |

 ERROR(vue-tsc)  Expression expected.
 FILE  /home/projects/nuxt-starter-fsn7ah/.nuxt/types/loader-types.d.ts:22:11

    20 |           
    21 |
  > 22 |           export interface Loaders {
       |           ^^^^^^
    23 |             
    24 |           }
    25 |

[vue-tsc] Found 2 errors. Watching for file changes.

Additional context

I first tried it on Windows 11. I had similar issues before when using Nuxt and its types on Windows, and I fixed it by deleting .nuxt, node_modules, and the lock file, and then restarting my PC. However, this time, that didn't work. I tested it on stackblitz.com just to be sure. Most of the time, Windows is the problem (I really need to switch to Linux ASAP), but I am not sure what is causing the problem this time.

Tested on Windows11, Linux and npm and pnpm.

Logs

No response