| 12 Nov 2023 |
peter-lustig | somehow | 14:04:08 |
Lily Foster | i highly doubt lock is necessary? | 14:04:11 |
Lily Foster | but package.json is because of the way this appears to work | 14:04:25 |
Lily Foster | as an ES module | 14:04:35 |
peter-lustig | ok i try to copy package.json to $out | 14:04:36 |
peter-lustig | ok Lily Foster looking better now with package.json included | 14:06:07 |
peter-lustig | more specfic error | 14:06:10 |
peter-lustig | says Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@lucia-auth/adapter-postgresql' imported from /nix/store/44bhywpwnrvcd7smgw92ak3nr9f8h26h-build-myapp-application/server/chunks/hooks.server-b844ff7f.js.
Maybe I do need to include the lock file
| 14:06:41 |
Lily Foster | okay so it does need node_modules then i guess | 14:07:25 |
Lily Foster | not lockfile though | 14:07:30 |
Lily Foster | idk why the sveltekit docs say that | 14:07:34 |
Lily Foster | well i mean you can include it | 14:07:50 |
peter-lustig | In reply to @lily:lily.flowers okay so it does need node_modules then i guess says this in the docs
You will need the output directory, the project's package.json, and the production dependencies in node_modules to run the application
| 14:07:51 |
Lily Foster | i guess it wouldn't hurt | 14:07:52 |
peter-lustig | so I just copy node modules as well? | 14:08:00 |
Lily Foster | i suppose | 14:08:03 |
peter-lustig | ok works now lmao | 14:08:44 |
peter-lustig | should have just done what the docs say | 14:09:00 |
peter-lustig | and not try own stuff xd | 14:09:05 |
Lily Foster | possibly | 14:09:39 |
Lily Foster | i did admittedly steer you away from that since i figured if they would use rollup, they were bundling deps | 14:09:50 |
Lily Foster | so, i do apologize for that | 14:09:56 |
Lily Foster | (also the docs didn't make any sense) | 14:10:04 |
Lily Foster | (as well) | 14:10:10 |
peter-lustig | this is all weird as hell | 14:10:22 |
Lily Foster | pretty much sums up how i'm feeling about sveltekit at this point | 14:10:34 |
Lily Foster | (it's almost like they never expected it to be used outside of dev and in production) | 14:10:49 |
peter-lustig | In reply to @lily:lily.flowers (it's almost like they never expected it to be used outside of dev and in production) feels more like they just want to force you to use netlify or vercel | 14:11:13 |
Lily Foster | or that, yeah | 14:11:24 |
peter-lustig | anyways, I will never touch this crap again | 14:11:39 |