vuejs / vue-loader

📦 Webpack loader for Vue.js components
MIT License
4.99k stars 915 forks source link

Could not compile Flowtype syntax #2081

Open BrevAlessioMk opened 4 months ago

BrevAlessioMk commented 4 months ago

Version

17.3.1

Reproduction link

codesandbox.io

Steps to reproduce

pnpm run start throws a syntax error related to the Flow type annotation.

What is expected?

The code should compile, since the babel flow preset is installed and configured.

What is actually happening?

The code is not compiling.


The same configuration was working on Vue 2 ( with vue-template-compiler ). I am not sure this is a bug but if you can take a look I'd appreciate very much.