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

Uncaught TypeError: Cannot read property '0' of undefined #19

Open
aniketparab4 opened this issue Apr 18, 2019 · 1 comment
Open

Uncaught TypeError: Cannot read property '0' of undefined #19

aniketparab4 opened this issue Apr 18, 2019 · 1 comment

Comments

@aniketparab4
Copy link

i have got error>> Uncaught TypeError: Cannot read property '0' of undefined

I have tried importing the json as :

import animationData from './animation.json';
import * as animationData from './animation.json';
const animationData = require('animation.json');

@careyestes
Copy link

I'm having the same issue. There are a list of attributes that are coming back undefined.

image

I saw a thread on Vue, that fixed it by adding .default to the end of the variable, but that did not help. Anyone got any other recommendations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants