sdr0x07b6 / nuxt3_vite-plugin-yaml2_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuxt 3 Minimal Starter

This project is to reproduce the problem that occurs when trying to install vite-plugin-yaml2 in Nuxt v3.

Setup and run

yarn && yarn dev

I can't get it to start...?

This project cannot be started as is. Once you have confirmed that the above startup method fails, rewrite server/api/yaml.get.ts. This time it will start.

// import data from '~/data.yaml';

export default defineEventHandler(() => {
  // return data;
  return 'This is YAML data';
});

About


Languages

Language:Vue 51.9%Language:TypeScript 48.1%