Attempting to import a local JSON object into my Vuex store using
const tree = import('@/articles/tree.json');
. The setting "resolveJsonModule": true,
has been enabled in my tsconfig.json
and it loads successfully, however NPM is flooding the output with warnings like:
WARNING in /home/benjamin/dev/learn-wgpu2/src/articles/tree.json(1,8654):
1:8654 Missing semicolon
It appears that Webpack is treating the JSON file as if it were TypeScript. How can this behavior be stopped?
Here's the specific json file.
{"path":"src/articles/","name":"articles","display":"","type":"folder","children":[{"path":"src/articles//about.md","name":"about.md","display":"/about.md","type":"file"},{"path":"src/articles//beginner","name":"beginner","display":"/beginner","type":"folder","children":[...]}]}
This data is being used to update my tutorial/blog on sotrh.github.io/learn-wgpu.