I'm trying to generate a ionic page using ionic CLI with following command,
ionic g page SomePage --no-module
as it said on the documentation.
But it still generates the module file. When i use the command
ionic g page SomePage
But it generates same files as earlier command. Is there any way I can generate a ionic page using ionic CLI without the module.ts file.
Related
Currently i am facing two problems:
I have two repos one for shell and another for MFE application
Here is the version o module federation
#angular-architects/module-federation": "^14.3.12
First Problem:
I have webcomponent created which is custom grid and it created separately in different repo. And this components is install via npm (added in package.json file) in MFE application project. And add the necessary files in script section of angular.json file. MFE application run properly when standalone. But when we use the MFE in shell application the shell application doesn't show the custom webcomponent. Only way to work is to install the same webcomponent in shell as well to work.
So anybody any idea how can share the webcomponents which used by MFE in shell application instead of installing in shell application project?
Second Problem:
Another problem I currently facing is sharing static files between MFE application and shell.
I have env.js file which has api call urls which is used by MFE application.With MFE application its works correctly.
But when I load the MFE application in shell application it doesn't recognizes the API url call because it tries to search in its asset folder instead of assets folder of MFE application?
Please let me know what i am missing here?
I tried with webconfig.js files in MFE application which angular module federation has created but didn't got any break through to these problems
When I generate a new folder in the ionic app, I call ionic serve, but it shows me localhost:8100/tab1/tab1. Then I delete tab1/tab1 and write /myApp/myApp, but LiveReload again shows me localhost:8100, I tried, again and again, to write the path to my project, but it shows me again and again localhost:8100. What can I do?
Try: ionic serve --no-livereload
i am new to ionic and there are some problems i am facing like the file structure is very different. like there is no lib folder no app.js file there is no angular.module('myApp') code anywhere.
help me out with it my whole work is pending.
i have tried re-installing ionic and cordove but didn't made any difference.
image attached below.
You are using ionic v2+ and not ionic v1. Ionic 2 uses Angular 2+ (not angularjs) and the language used is typescript.
The source files belong in src/ and root module is app.module.ts and starting component is app.component.ts
If you want to still use ionic v1, it is supported (the file structure you are looking for is of ionic 1). You need to set --type as ionic1 when you start the project.
https://ionicframework.com/docs/cli/start/
ionic start myApp blank --type=ionic1
you are not using ionic v.1 Ionic version have the pattern in which the js folder holds app.js,controller.js etc.
Ionic v-2 uses modules instead of controllers.Ionic 2 is oriented for Object Oriented Concepts, thats why it is the form of class. If you want a peculiar type of version use the command : ionic start newapp blank --v1 .
But i would suggest you to use typescript which better than js.
I am trying to test a sample Ionic2 app. I have started using ionic start AppName --v2.
Got the code in local with src folder. But the www folder is empty. When I do ionic serve, its opening the app in browser and throws the below error.
Error: ENOENT: no such file or directory, open 'path\to\folder\www\index.html'.
www folder is not getting updated with the compiled code. Nor build folder is getting generated inside the src folder. I have typescript and other compilers installed as well.
Try re-installing ionic framework, and making sure your CI is updated.
It could also be a permission issue, have you tried using sudo ?
sudo ionic start AppName tabs --v2 --ts
also make sure you are at the root of your application when running
ionic server
I am new to the Ionic Framework, very new, and I wanted to start a new project, but every time I start a new project it autodownloads the tabs sample as my project. I want a blank new project, how can I stop Ionic from downloading the tabs sample, because as it is I'm not sure which files to remove without breaking anything.
Execute this command to start a new blank app with the name "myApp":
ionic start myApp blank
What command do you use to create the project?
Have you tried:
ionic start myApp blank
You should read the doc:
Simple:
ionic start APP_NAME blank.
Or you want to specify more information:
ionic start -a APP_NAME -i PACKAGE_NAME FOLDER_NAME blank
Hi Just follow this steps and you will able to open a blank project in ionic.
Open the terminal and write
npm install -g ionic
then next command is
ionic start myApp blank ( myApp is the project name you want to create ) for example
ionic start fashion blank ( So here I want to create an app for e-commerce and my project name is fashion )
I hope this will work for you.