-
Notifications
You must be signed in to change notification settings - Fork 20
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
How to reference a JSON file in a component? #149
Labels
Comments
Could you provide a reproduction that shows what you are doing? If it and the Vue components are both in the runtime directory, I would use a relative import. |
Closing as this is an old issue that needs more info. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to import a JSON file in a vue component, this is how I do it current in a non-module build:
import List from "~/src/json/list.json"
I've tried adding the json file to assets in the runtime folder, but can't figure it out.
The text was updated successfully, but these errors were encountered: