September 24, 2018 at 10:30 am #598905
After upgrading (angular 6) projects won’t work. This is the message:
Error: Cannot find module ‘@angular/cli/node_modules/webpack-dev-server/lib/Server’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/Users/leonardo/Documents/workspace/tgg/node_modules/angular-ide/addon/commands/serve.js:16:15)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
Thanks in advanceSeptember 25, 2018 at 8:26 am #599085
Sorry that you are seeing this issue.
We have a bug already filed for similar error when running
ng updateon a Angular CLI 1.7.4 project.
Can you please let us know how you have upgraded the Angular CLI version of the project? Also let us know the previous version of Angular CLI on the project. If possible, please also share with us the project’s package.json to help us investigate further.
Apologies for inconvenience caused.
Genuitec SupportSeptember 25, 2018 at 10:28 am #599253
I followed the guide at https://update.angular.io/ over a newly created project.
I encountered some problems that I solved using the command: npm install –save-dev @angular/cli@latest
ng update says that everything is up to date and fine but when I try to run the app (empty because is new) throws the error I mentioned before.
I tried this approach to solve another problem I had when I did a merge on a project and the project would not run anymore saying that the project it’s not an Angular project:
“Project XXXX is not an Angular CLI project.”
That project is at level 6 running and configured OK on another wachine (workspace).
ThanksSeptember 26, 2018 at 10:19 am #599372
Thank you for the details.
Can you please run
npm updatefor the project from the Terminal+ view and see if it fixes the issue?
If you are still seeing issues, then please share with us your project’s package.json for further investigation.
Please let us know how it works for you.
Genuitec SupportOctober 4, 2018 at 9:57 am #599951
I did run the command but it made no difference. I tested some more and now I think I know the reason why my project is not recognized anymore.
As I upgraded the project the old .angular-cli.json was deleted and the new angular.json was created. Now without the .angular-cli.json the IDE doesn’t recognize my project as an Angular project anymore.
Is there something I can do to solve the problem?
Thanks in advanceOctober 4, 2018 at 12:16 pm #599961
We do support projects with the newer
angular.jsonformat – perhaps you have an older version of Webclipse installed? Can you check the version on the Preferences > Webclipse page?
I would actually now recommend you update Webclipse (in case you are on a version earlier than 2017 CI 14) and then go on to install CodeMix, which will provide superior Angular support. All Webclipse based installs will be automatically updated to CodeMix in the next month, but you can always do it manually right now. You can read more, and get CodeMix here: https://www.genuitec.com/products/webclipse/
Note: I’ve assumed you have Webclipse installed as plugins into Eclipse. If, instead, you have Angular IDE standalone, do ensure you check for updates ad you should get the above CodeMix updates automatically installed.
Hope this helps.October 4, 2018 at 2:49 pm #599967
Well, I made it work but only using the Terminal. If I run “ng serve” the project runs and the “server” view updates correctly, but if I try to use de “server” view and select the project and press the play button, I get an error saying that the project is not and Angular project.
I also noted that if I try to use the IDE to create a new component, it tells me that I need to select a source folder, when I try to select the folder and I do, there is a message at the bottom of the dialog saying “Selected project is not a valid angular cli project”
Again, using the terminal I can create the component.
I updated the webeclipse plugin today (18.104.22.16880924…)
ThanksOctober 5, 2018 at 12:59 pm #600033
From Angular IDE, if you expand your project. Does the angular.json file is a direct children of the project or does the angular.json is inside a child directory of your project? If the angular.json file is inside a directory of your project, could you share how you create your project?
To make a bit more clear…
IgnacioOctober 5, 2018 at 1:47 pm #600037
I’m attaching a snapshot.
Attachments:You must be logged in to view attached files.October 5, 2018 at 3:06 pm #600043
I’m attaching you a patch plugin just adding some extra entries on the log when you try to use these features of Angular IDE, create a component or start a server. To apply it:
1. Shutdown your Angular IDE.
2. Look at your install directory for the plugins directory. Make sure the attached jar filename matches with one inside this directory and replace it
3. Start your Angular IDE, try to create a component and start a server. This will add some extra entries to the workspace log, just to check what is different on your side.
4. Send to us your workspace log, it is usually located inside your selected workpsce dir
.metadata/.log. Copy that file to somewhere else and change the name if you can before attach it here.
This will provide to us enough information to get you a fix soon.
IgnacioOctober 5, 2018 at 3:07 pm #600044
I’m attaching the file again just removing the extension, when you download it rename it by just adding the .jar extension to the file.
IgnacioOctober 5, 2018 at 3:11 pm #600045
Argh!!! The forum system. Here you can find the file: https://wetransfer.com/downloads/8443e7f156be42551ad9718b015f7e2320181005200948/066a0d59ca5a30461912eb1c2952937720181005200948/4c7a35
IgnacioOctober 8, 2018 at 2:31 pm #600110
do you have the following options available if you right click on your project and select the ‘New->’ menu option ? (see attachment)
Also, is the project available on ‘Severs’ view?
If so, can you share either screenshots or better record a brief video with the steps you are following when the message is being shown?
were you able to replace the plugin? if so, can you go through the steps and attach the generated workspace log?
Attachments:You must be logged in to view attached files.
Can't run project
- This topic has 12 replies, 5 voices, and was last updated 3 years, 10 months ago by .
Viewing 13 posts - 1 through 13 (of 13 total)
Viewing 13 posts - 1 through 13 (of 13 total)