Unable to serve super app
jgw96 opened this issue · comments
From @turaleck on April 4, 2017 2:14
Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
I am unable to serve an app created with the super
flag. This is what I see in the browser:
Runtime Error: Unable to find module "ionic-native"
v@http://localhost:8100/build/polyfills.js:3:4862 @http://localhost:8100/build/main.js:116830:7 webpack_require@http://localhost:8100/build/main.js:20:12 @http://localhost:8100/build/main.js:102085:73 webpack_require@http://localhost:8100/build/main.js:20:12 @http://localhost:8100/build/main.js:128721:70 webpack_require@http://localhost:8100/build/main.js:20:12 @http://localhost:8100/build/main.js:66:18 @http://localhost:8100/build/main.js:1:11
Ionic Framework: 2.3.0
Ionic App Scripts 1.1.4
Angular Core: 2.4.8
Angular Compiler CLI: 2.4.8
Node: 7.8.0
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0
I believe this is a similar problem, but the resolution therein did not fix my issue.
This is what I did:
- Deleted the app
- npm --save @ionic-native/core@alpha -g
- Recreated the app
Expected behavior:
I was expecting to see more than 14 ready to use page designs
Steps to reproduce:
- ionic start myApp super --v2
- cd myApp
- ionic lab
Ionic info: (run ionic info
from a terminal/cmd prompt and paste output below):
Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v7.8.0
Xcode version: Not installed
Copied from original issue: ionic-team/ionic-framework#11038
Please fix asap. It is really demoralizing to follow the official documentation (https://ionicframework.com/docs/intro/tutorial) and have "super" completely fail out of the box despite following all the setup instructions exactly. I am a novice here but can't the package.json at least be hard coded so that the current prod version sticks to the working version of ionic-native? I feel like it should be possible for this sample to not completely fail for all new users....
@Enalmada we fixed all issues with the next release!