R
Railway•15mo ago
schmell_mafeet

error on index file

I have an index file in a folder that exports all the components in that folder for easier importing on my pages index.ts (i tried it as .js as well)
export { default as Form } from './form.svelte';
export { default as Textarea } from './Textarea.svelte';
export { default as Button } from './button.svelte';
export { default as Select } from './select.svelte';
export { default as Input } from './input.svelte';
export { default as File } from './file.svelte';
export { default as Check } from './check.svelte';
export { default as Hidden } from './hidden.svelte';
export { default as Form } from './form.svelte';
export { default as Textarea } from './Textarea.svelte';
export { default as Button } from './button.svelte';
export { default as Select } from './select.svelte';
export { default as Input } from './input.svelte';
export { default as File } from './file.svelte';
export { default as Check } from './check.svelte';
export { default as Hidden } from './hidden.svelte';
This throws this error on build from github
6.242 Could not resolve "./button.svelte" from "src/lib/components/form/index.js"
6.242 file: /app/src/lib/components/form/index.js
6.242 Could not resolve "./button.svelte" from "src/lib/components/form/index.js"
6.242 file: /app/src/lib/components/form/index.js
Oddly enough this does not error on railway up I am using Sveltekit, Prisma, Lucia-auth, if that makes any difference Thanks in advance for any help you can provide.
18 Replies
Percy
Percy•15mo ago
Project ID: N/A
Brody
Brody•15mo ago
do you get this error when you build this locally?
schmell_mafeet
schmell_mafeet•15mo ago
Trying now Nope
Brody
Brody•15mo ago
Oddly enough this does not error on railway up
are you saying if you deploy your code with railway up there are no errors and the deployment goes out fine?
schmell_mafeet
schmell_mafeet•15mo ago
Yes
Brody
Brody•15mo ago
mind sharing your repo?
Brody
Brody•15mo ago
its private lol
schmell_mafeet
schmell_mafeet•15mo ago
oh crap. uhh I don't know how to change it to public. I can add you maybe
Brody
Brody•15mo ago
in the settings somewhere
schmell_mafeet
schmell_mafeet•15mo ago
Ahh. In the DANGER ZONE Ok should be good src/lib/components/form Oh i see something
Brody
Brody•15mo ago
me too
schmell_mafeet
schmell_mafeet•15mo ago
Why is the case not changing when i commit?? Ok i think i got it now. I should have looked at the repo, my bad
Brody
Brody•15mo ago
we saw the same thing let me know if it works when you fix the casing that answers the question of why railway up works though, railway up archives your local project into a tarball and sends it off to be deployed
schmell_mafeet
schmell_mafeet•15mo ago
Ok i guess i have to fix the casing on github then pull to local to fix it
Brody
Brody•15mo ago
github is confusing sometimes
schmell_mafeet
schmell_mafeet•15mo ago
Ya that was it. I am not sure why a commit and push won't change the case of file names, Now i know Thanks for everything
Brody
Brody•15mo ago
no problem 🙂
Want results from more Discord servers?
Add your server