edus44 / vue-cli-plugin-yaml

Add YAML support to Webpack using yaml-loader
MIT License
10 stars 1 forks source link

Does it supposed to work with Vue 3? #4

Open sookoll opened 3 years ago

sookoll commented 3 years ago

I created Vue 3 app with Vue CLI (Vue, typescript, es6 class-components) and installing this plugin. It doesn't seem to work out of the box, as it can't load yaml files with or without extension.

ERROR in src/main.ts:6:26
TS2307: Cannot find module '@/config/settings.yaml' or its corresponding type declarations.
 > 6 | import { app, map } from '@/config/settings.yaml'
sookoll commented 3 years ago

Small update. Basically, it's working as I get values from yaml. But mentioned error still occur.

finnjames commented 3 years ago

Did you ever get this figured out? I'm having the same issue. Vue 3, TypeScript. It's not working at all, though, after throwing that error.

sookoll commented 3 years ago

Haven't looked recently, but it seems, that this plugin is not in active dev, as no response from repository owner here.

drewjocham commented 1 year ago

I am also having this issue.