I have Two projects sharing my library project in same directory like this
Project 1
app/
../Library Project/library/
Project 2
app/
../Library Project/library/
Library Project
library
Now when I project 1 it works fine , let's say now I have to work on Project 2 then it loads Project 1 instead of Project 2. Now if I delete the .idea directory of Project 2 , it works fine. But when I open Project 1 again it does same and loads Project 2 instead of Project 1.
Is there any permanent solution for this problem ?
Related
I am currently using lazy loading to load 2 components in my project, this causes code splitting to happens when I build a production release of the app (npm run build). My dist folder is as below. Now the problem is when index.html is loaded in folder 1, it can't see the 2 files (my-splitted-code/code1) which have been created automatically in the root of the dist folder. My question is can you point me in the direction how i can manually control the path the splitted code is being created? or if there is any other simple solution.Currently on webpack 5.
I have tried every tutorial I could find to try to make a HTML/JS project with Angular 2 working on NetBeans, but none have worked. Maybe is my npm that is bugged (search, for example, doesn't work).
The node_modules folder that is created with npm install is grey on NetBeans and have some errors in some files (I don't know if this is normal). Any .js I try to import from node_modules folder gives the error Failed to load resource: net::ERR_EMPTY_RESPONSE / Uncaught ReferenceError: System is not defined.
Does anyone have any idea what could I be doing wrong? Or does anyone knows any tutorial that have the code to download so I can compare with what I'm doing and see what is the correct? Every tutorial I have found doesn't have any code to download, just some pieces of codes in the page for explanation.
Sory if this isn't a good question, but I have been trying to make this work since yesterday without success and I'm completely out of idea.
First I recommend to upgrade to the last version of NodeJS and NPM, to minimize the errors in your node_modules folder
Install the Everlaw's Typescript plugin from https://github.com/Everlaw/nbts/releases . If you are using Netbeans 8.1 I think you can install it directly from the Plugins installer. I'm using NetBeans 8.2 and there is no problems installing the plugin manually.
Then on NetBeans go to Tools -> Options -> HTML/JS -> Node.js and write the right Node and NPM Paths and Sources, I would recommend check-on the three check-boxes in that panel.
For a quick start try the QuickStart demo from the angular.io page, it is not necessary make any change in the package.json.
The first time I tried to debug an Angular 2 application I put the index.html file directly in the project folder in order to do not make any changes in the index.html script sources nor change the project files structure but you need to change some properties of the project:
In the project window right click the project and select properties.
In sources change the Site Root Folder using the Browse button and select the project folder (You can ignore the warning that appears).
In Run select Run As: Web Application.
I recommend select Browser: Chrome with NetBeans Connector
Using the Browse button go to the project folder and select index.html as your Start File.
Select Web Server: Embedded Lightweight.
And finally in Web Root write /Your_Project_Folder
run npm install from NetBeans
Click the run button and your web application must open in chrome, if you edit your html or typescript files and save them you could see the changes in the browser in real time without re-debuggind your application and can use the Browser DOM window to explore your elements created from Angular 2.
You still see some errors in your files because NetBeans is not fully compatible with the HTML Angularized syntax. But it runs flawlessly.
You can also run the start script directly from Netbeans to run your project using lite-Server.
Screenshot NetBeans - Angular 2
I would recommend you to install the angular cli: npm install -g angular-cli#webpack
Fore more infos regarding this tool, take a look here: https://cli.angular.io/
Then create a new Angular2 app with ng new <app-name>
This will create a complete and working Angular2 application in the current folder.
cd <app-name> and start the app with ng serve.
Check your new created app in your browser on localhost:4200.
If this works, you can try to get started with your NetBeans! :)
I'm learning Ionic 2 after I learned Ionic 1 for the past 2 weeks. In the weeks I learned Ionic 1 I made a app with a calendar with a plugin. I did the code of the calendar plugin in the www/lib folder.
But now by Ionic 2 the file structure is different and does someone know where I have to put the *.js and the *.css files into for that calendar plugin?
if your plugin is npm library, install using command npm install package-name inside the project folder. If it is not an npm package, follow the steps from link to get it done.
I have the PHP IDE version of NetBeans 7.2 and have installed the plugin successfully (it is shown as enabled in the plugins list and appears in the project properties). However, nowhere do I see a place to select the framework as shown in the download page (http://plugins.netbeans.org/plugin/44579). When creating a new IDE there is no step 4, just 1,2, and 3...so obviously something is missing. Is there a dependent plugin I need or maybe I need the full, huge version of NetBeans?
I am using Windows 7, PHP 5.3, CakePHP 2.1.2
Thanks
The plugin was working correctly, however it requires that there only be 1 app in the project folder in the same directory as the CakePHP lib folder. The NetBeans project folder is not the 'app' folder that contains the Controllers and Views folders, instead it must be the folder that contains the app and lib folders.
Just go to NetBeans' main menu Tools > Plugins > Available Plugins. Choose the plugin you want and install it.
I'm trying to import existing Cake 1.2 projects into PHP Eclipse (latest all-in-one download on Galileo build) - I don't think I understand Eclipse properly:
1) I have created Workspace on my web root C:\Program Files\xampp\htdocs
2) I have created new Project C:\Program Files\xampp\htdocs\EclipseCake
... how do I import my existing cake project into my new project (EclipseCake) ?
I tried Configure Include Path -> Project -> Add ... but no file browser appears. I'm obviously misunderstanding this.
There's an "Import" in the menu if you right click the new project's name.What you need to do is click it and choose "Filesystem" and click "next" button.You may read this tutorial about eclipse.