wobsoriano / numix

Write your server code inside Vue SFC's and handle forms easily.
https://numix.vercel.app
214 stars 1 forks source link

Weird import error ? #10

Open tornado-softwares opened 5 days ago

tornado-softwares commented 5 days ago

Heyy

Numix is ​​really interesting but it's impossible to make it work on nuxt 3.12 :/, I have an import error

image image

If I do something wrong, tell me! and sorry if this project is no longer maintained, it's understandable..

How to reproduce: start from the playground folder in this repo and pnpm install numix then import it to the modules field in nuxt.config.ts.

wobsoriano commented 5 days ago

Oh, I'll try and take a look asap. It's semi maintained... as long as I get issues like this I can start working on it again.

Currently it has 8 npm downloads 😆

tornado-softwares commented 5 days ago

Great ! I wanted to use this module because I'm trying to move from remix/react to nuxt/vue and I'm really used to doing actions/loaders like in remix instead of an api route for each so if this module can help me That would be really amazing, thank you! If you repair it I'll probably share it with a few friends!

tornado-softwares commented 5 days ago

Re : I tried to debug it myself today and it seems that an mjs file is missing so I copied handler js and renamed it to .mjs it seems to work but I have a lot of warnings, it Was there perhaps a problem with your gitignore when you made the commit?

image

I'm going to try to fix it this afternoon. I might do a PR if my fix works!

tornado-softwares commented 5 days ago

Re (Yeah again) It seems that the warning does not concern Numix, the problem was solved simply by renaming the handler.js file to handler.mjs, I do not understand why or how this handle.mjs file is not found there. but here is the solution, and thank you for this incredible package!