R
Railway•16mo ago
schmell

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•16mo ago
Project ID: N/A
Brody
Brody•16mo ago
do you get this error when you build this locally?
schmell
schmellOP•16mo ago
Trying now Nope
Brody
Brody•16mo 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
schmellOP•16mo ago
Yes
Brody
Brody•16mo ago
mind sharing your repo?
Brody
Brody•16mo ago
its private lol
schmell
schmellOP•16mo ago
oh crap. uhh I don't know how to change it to public. I can add you maybe
Brody
Brody•16mo ago
in the settings somewhere
schmell
schmellOP•16mo ago
Ahh. In the DANGER ZONE Ok should be good src/lib/components/form Oh i see something
Brody
Brody•16mo ago
me too
schmell
schmellOP•16mo 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•16mo 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
schmellOP•16mo ago
Ok i guess i have to fix the casing on github then pull to local to fix it
Brody
Brody•16mo ago
github is confusing sometimes
schmell
schmellOP•16mo 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•16mo ago
no problem 🙂
Want results from more Discord servers?
Add your server