This is a starter template for Ionic projects.
It is based on the blank template and has the minimum integration to use PrimeNG components.
Clone the repo, run npm install
, and start moving bits...
Details in this commit if you just want to see how it works.
Kudos to TheBrockEllis 🙌
C:\ae\aeprime>ionic info
global packages:
@ionic/cli-utils : 1.4.0
Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework : ionic-angular 3.4.2
System:
Node : v6.11.0
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 3.10.10
Details in this commit to see the details.
The latest node-sass is needed to successfully compile.
npm install --save node-sass@latest
C:\ae\adaept.com\aeprime>npm install --save node-sass@latest
> [email protected] install C:\ae\adaept.com\aeprime\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.8.3/win32-x64-57_binding.node
Download complete..] - :
Binary saved to C:\ae\adaept.com\aeprime\node_modules\node-sass\vendor\win32-x64-57\binding.node
Caching binary to C:\Users\peter\AppData\Roaming\npm-cache\node-sass\4.8.3\win32-x64-57_binding.node
> [email protected] postinstall C:\ae\adaept.com\aeprime\node_modules\node-sass
> node scripts/build.js
Binary found at C:\ae\adaept.com\aeprime\node_modules\node-sass\vendor\win32-x64-57\binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN @ionic/[email protected] requires a peer of @ionic/app-scripts@^1.3.7 but none is installed. You must install peer dependencies yourself.
+ [email protected]
added 91 packages, removed 530 packages and moved 8 packages in 19.475s
C:\ae\adaept.com\aeprime>ionic info
[ERROR] Error with .\node_modules\@ionic\app-scripts\package.json file: FILE_NOT_FOUND
Fix this with:
npm install @ionic/app-scripts@latest --save
C:\ae\adaept.com\aeprime>ionic info
cli packages: (C:\Users\peter\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
local packages:
@ionic/app-scripts : 3.1.8
Ionic Framework : ionic-angular 3.4.2
System:
Node : v8.9.4
npm : 5.6.0
OS : Windows 10
Misc:
backend : pro
C:\ae\adaept.com\aeprime>ionic serve
[WARN] Detected @ionic/cli-plugin-ionic-angular in your package.json.
As of CLI 3.8, it is no longer needed. You can uninstall it:
npm uninstall -D @ionic/cli-plugin-ionic-angular
C:\ae\adaept.com\aeprime>npm uninstall -D @ionic/cli-plugin-ionic-angular
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
removed 89 packages in 9.688s
C:\ae\adaept.com\aeprime>
C:\ae\adaept.com\aeprime>ionic serve
...
webpackJsonp is not defined
Fix this by adding <script src="build/vendor.js"></script>
to index.html before main.js