phonegap / phonegap-template-vue-f7-tabs

A TabBar PhoneGap template using Vue.js and Framework7
Apache License 2.0
31 stars 19 forks source link

Unable to build, import App from './app'; fails #27

Open tacman opened 5 years ago

tacman commented 5 years ago

I believe my dev environment is current, but can't build this app.

npm run dev

com.phonegap.helloworld@1.0.0 dev /var/www/cordova/phonegap-template-vue-f7-tabs-exmample webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

28% building modules 152/154 modules 2 active ...es/framework7/dist/css/framework7.css[BABEL] Note: The code generator has deoptimised the styling of "/var/www/cordova/phonegap-template-vue-f7-tabs-exmample/node_modules/framework7/dist/framework7.esm.bundle.js" as it exceeds the max of "500KB". 94% asset optimization

ERROR Failed to compile with 1 errors 8:16:58 AM

This relative module was not found:

The offending line is

// Import App Component
import App from './app';

Very new to phonegap / vue / framework7, so not sure how to proceed. I imagine it's something easy, to load App.vue, but not sure how.

tacman commented 5 years ago

Looks like

// Import App Component
import App from './App.vue';

fixes the issue. I'll submit a PR