Check out this VueJS course on building Robots: VueJS Course Link
My VueJS-RobotBuilder repository: RobotBuilder Repo
Currently, I am working on a VueJS tutorial that involves an issue with an imported data object called availableParts
.
I have successfully imported the JSON object from parts.js into the data object, and I can see it logged out. However, there seems to be an error in the template section. Any ideas on what might be causing this?
https://i.sstatic.net/kJN4W.png
Full code:
<template>
...
</template>
<script>
import availableParts from '../../data/parts';
console.log('availableParts', availableParts);
export default {
...
};
</script>
<style>
...
</style>
parts.js
const images = require.context('./images', true, /\.png$/);
const parts = {
...
};
export default parts;