[Vuejs]-Why is my YAML value not defined when I read it in javascript but it is everywhere else?

0👍

This happens because you do

import config from "./config.yml";

That statement tries to parse your YAML file as JavaScript source. Drop the line and do fs.readFile("./config.yml", … instead.

Leave a comment