ionic serve building ionic2 project as ionic1 project - ionic2

I have Ionic2 project it run and built ok with ionic serve.
but after some time it build project as it is in Ionic1 project
this output
Running live reload server: http://localhost:35729
Watching: www/**/*, !www/lib/**/*, !www/**/*.map
√ Running dev server: http://localhost:8100
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit
enter code here
and this ionic config
{
"name": "my-side-menu",
"app_id": "",
"v2": true,
"typescript": true
}

Related

Expo + React Navigation + Vercel: Deep Linking not working

I am using expo sdk41, react navigation 5, and vercel to deploy a web-build, built with expo build:web.
When I am developing locally, I can deep link, e.g. http://localhost:19006/sign-in. However when I deploy it to vercel and assign a domain name to it, the deep linking does not work anymore.
I am already doing the following, which allows deep linking to work in development:
export const linking = {
prefixes: [Linking.createUrl('/'),
screens: {
...
}
}
Why is deep linking working in development and not when deployed to vercel?
I am happy to add more info if needs be.
Running expo build:web bundles a SPA and you need to redirect calls to the deployed app to index.html. Vercel allows configuring redirects using a vercel.json configuration file, placed at the root of a project.
Add a web/ folder in your Expo root directory and create a vercel.json file in the web/ folder with the following content:
{
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}
This file will be copied to the web-build folder when you run expo build:web.
I was able to fix this by setting the framework in the setting to create-react-app

when use boilerplate react, The program does not automatically load when i change code

Access URLs:
Localhost: http://localhost:3000
LAN: http://192.168.1.149:3000
Press CTRL-C to stop
Browserslist: caniuse-lite is outdated. Please run next command npm update
webpack built 05ca26999e06dbfe2da9 in 13788ms

How to disable Ionic2 livereload

I need to disable ionic2 livereload. I am using the following command to run an app.There is no file like ionic.config.js
ionic serve
Help for ionic serve. More info: ionic -h
ionic serve [options] … Start a local development server for app dev/testing
[–consolelogs|-c] … Print app console logs to Ionic CLI
[–serverlogs|-s] … Print dev server logs to Ionic CLI
[–port|-p] … Dev server HTTP port (8100 default)
[–livereload-port|-r] … Live Reload port (35729 default)
[–nobrowser|-b] … Disable launching a browser
[–nolivereload] … Do not start live reload
Look at the last switch.

ImportError: No module named appengine.api -windows 10,local env, python 2.7

I want to use google appengine.api in local machine. i have installed google cloud SDK and started it ,the authentication is successful . I have executed $dev_appserver.py app.yaml at the project path which has started a google app engine server at localhost:8000 .
when i want to execute the program it gives an error message " ImportError: No module named appengine.api "
I appreciate your help .
My first thought is it is an error in the code you are deploying. Are you able to get the Hello World to work?:
https://cloud.google.com/appengine/docs/standard/python/quickstart#download_the_hello_world_app
I tried executing the project in local in pycharm, so i got the above error(google.appengine.api error). Basically it has to be executed on a server.The server can be started using your terminal.
1) Go to the project path(root folder of all files in the project where the app.yaml file is located,eg: appengine)
2) start the server using $ dev_appserver.py app.yaml. It starts server at localhost port 8000 as the default one.
3) In the server start depends on the handler and its path specified (like '/' or '/testjob') try localhost:8000/ or localhost:8000/testjob
4) All the logs written in the program will be shown in the terminal. For logs try using 'logging' module , make sure to mention the logging level else basic level logs are not shown

Cannot setup Ionic monitoring with ionic cordova build --prod

I tried the following command to try add the monitoring feature of ionic to diagnose a problem in my app using ionic view.
$ ionic monitoring syncmaps
git rev-parse HEAD
√ Running command - done!
[INFO] No sourcemaps found, doing build...
? Do full prod build? (Y/n) y ?
Do full prod build? Yes
[INFO] Running app-scripts build: --prod
[22:16:31] build prod started ...
[22:16:31] clean started ...
[22:16:31] clean finished in 1 ms
[22:16:31] copy started ...
[22:16:31] ngc started ...
[22:16:37] ngc finished in 6.08 s
[22:16:37] preprocess started ...
[22:16:37] deeplinks started ...
[22:16:38] deeplinks finished in 441 ms
[22:16:38] optimization started ...
[22:16:38] copy finished in 6.63 s
Error: ./src/pages/admin/admin.ngfactory.js
Module not found: Error: Can't resolve '../../../angularfire2/auth' in >'C:\Users\Gavin\Desktop\Web Development\app\src\pages\admin'
resolve '../../../angularfire2/auth' in 'C:\Users\Gavin\Desktop\Web Development\app\src\pages\admin' using description file: C:\Users\Gavin\Desktop\Web Development\app\package.json (relative path: ./src/pages/admin)
Field 'browser' doesn't contain a valid alias configuration
This error keeps going down the page for a long time, I get the same error if I type
ionic cordova build --prod
I resolved it by deleting .ngmodules folder, downgrading my firebase version to npm i --save angularfire2#4.0.0-rc.1 , and then npm install. I was then able to build my app with ionic cordova --prod