-
-
Notifications
You must be signed in to change notification settings - Fork 136
SyntaxError: import declarations may only appear at top level of a module #10
Comments
Hello @sullyfischer I tested with #6 there is no error. It's probably about nodejs version. if you'r using cordova, check this too: https://github.com/centrual/cordova-template-framework7-vue-webpack |
@centrual Thank you for responding. My nodeJS version is the latest. I also tried what you the link you recommended but couldn't get it running. I'm new to the whole phonegap thing but I'm good with Vue. Could you please tell me if I can just use vue-cli, vue-router and vue-resource to create my mobile app and then just push it into phonegap and be done with it? Or must I start with such packages such as Framework7? Thanks again |
Interesting, can you write your cordova version, browser name and version, OS name? Your problem is so interesting, because people using this templates without error. Mobile frameworks like framework7, ionic, onsen etc... helping a lot when you developing an mobile app. Because you can do everything so fast with this frameworks. But you can run your boutique package in phone too. There is so much thing you need to make if you don't want to use frameworks like: page transitions, history, caching, ajax and most importantly performant html-css. I doesn't writing language translation etc, because vue has good packages for that. So my answer is yes and no at same time. It changes depends on what do you want. I mostly recommending use framework. |
seems like I was running wrong commands. I tried |
Yes, you don't need Vue-router, framework7-vue has router already. If you have cordova, i recommend to use Have a great day! |
Hi
I just installed though the instructions and this is what I get after running the dev server:
SyntaxError: import declarations may only appear at top level of a module
Any idea how to fix it?
The text was updated successfully, but these errors were encountered: