Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use hyphens in filename #282

Open
jimafisk opened this issue May 31, 2023 · 1 comment
Open

Can't use hyphens in filename #282

jimafisk opened this issue May 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jimafisk
Copy link
Member

Similar to the issue where you can't use spaces in filenames (#82), it seems like if you try to use a hyphen (-) instead of an underscore (_) you get a somewhat convoluted error:

build.go:152: 
Error in Client build step
Could not get all layouts Could not add SSR Component for layouts/content/event-list.svelte: SyntaxError: Unexpected token '-'

Not sure if this is a bug that was introduced recently, but using hyphens in filenames is probably pretty common. We should allow this.

@jimafisk jimafisk added the bug Something isn't working label Jun 1, 2023
@jamestagal
Copy link

jamestagal commented Jun 11, 2023

Hi @jimafisk
I think i had this issue but changed to underscores but using hyphens in .json files isn't a problem.

Ben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants