Using Flow.js in Vue.js

I am trying to use flow.js with vue.js , but I am having problems making it work in .vue files.

I ran vue init webpack , npm install -g flow-bin , and then npm install and npm run dev .

I managed to ignore the error 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 tried to add // @flow notation to the src / App.vue file, and I tried to add src / App.vue to [include] in .flowconfig, but I still get the error.

I would like to avoid stubbing.vue files, since there isn’t much point in using a stream if most of the files you use js cannot use them.

Is there a way to use stream with vue?

+5
source share

Source: https://habr.com/ru/post/1260101/


All Articles