I'm trying to use flow.js with vue.js but I'm running into issues getting it to work in .vue files.
I ran vue init webpack
, npm install -g flow-bin
, and then npm install
and npm run dev
.
I was able to ignore the erroring files in my node_modules in my .flowconfig, but when I try to add // @flow
to the top of my src/main.js file I get the following error
src/main.js:3
3: import App from './App';
^^^^^^^ ./App. Required module not found
I've tried adding // @flow
notation to my src/App.vue file and I've tried adding src/App.vue to [include]
in .flowconfig but I still get the error.
I'd like to avoid stubbing .vue files as there's not much of a point of using flow if most of the files you have js in won't be able to use them.
Is there a way to use flow with vue?