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

Cannot find import .yml file in svelte import #156

Open
tqwewe opened this issue Oct 26, 2020 · 3 comments
Open

Cannot find import .yml file in svelte import #156

tqwewe opened this issue Oct 26, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@tqwewe
Copy link

tqwewe commented Oct 26, 2020

When running this on my svelte app, I receive the following error:

ERROR: Cannot find import ../data/menu-items.yml for /src/components/layout/Header.svelte

My Header.svelte file contains:

import menuItems from '../data/menu-items.yml'
import type { Submenu } from '../data/menu-items.yml'

When I comment out the import type line, destiny runs fine, but the import type line causes it to fail.

@AnatoleLucet
Copy link
Collaborator

Hi @acidic9 can share a reproduction (codesandbox, gh repo, etc...) ? Thanks.

@AnatoleLucet AnatoleLucet added the bug Something isn't working label Oct 26, 2020
@benawad
Copy link
Owner

benawad commented Oct 26, 2020

I think we just need to add yaml to https://github.com/benawad/destiny/blob/develop/src/index/shared/customResolve.ts

@AnatoleLucet
Copy link
Collaborator

I think we just need to add yaml to https://github.com/benawad/destiny/blob/develop/src/index/shared/customResolve.ts

Indeed

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

3 participants