Open stlbucket opened 6 years ago
Weird, will these errors disappear if you remove vuera?
well, i can't remove vuera since it is what i'm using to wrap the react component.... so i'm not sure exactly what you're asking.
It looks like there's something not right with the Webpack/Babel config maybe? Because it's failing to parse Flow syntax, which should have nothing to do with vuera.
It seems that vue-loader
is trying (and failing) to parse Flow syntax. I'm not sure why that happens, though.
https://github.com/stlbucket/vue-graphiql
in the above repo, i have created a new vue cli 3 app, then tried to incorporate the graphiql react component via vuera
i've been able to get past a number of webpack hurdles, but there seems to be a problem with some flow files when running yarn serve
this happens for seven files, i believe, and always at the import directive.
https://github.com/vuejs/vue-cli/issues/1810 and https://www.npmjs.com/package/flow-babel-webpack-plugin
are the last two things i've come to, but the plugin seems to have no effect.
vue.config.js:
package.json: