- This topic has 12 replies, 5 voices, and was last updated 6 years, 1 month ago by jhugohr.
-
AuthorPosts
-
LeonardoParticipantAfter upgrading (angular 6) projects won’t work. This is the message:
internal/modules/cjs/loader.js:583
throw err;
^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 advance
support-swapnaModeratorLeonardo,
Sorry that you are seeing this issue.
We have a bug already filed for similar error when running
ng update
on 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.
–Swapna
Genuitec Support
LeonardoParticipantI 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).
Thanks
support-swapnaModeratorLeonardo,
Thank you for the details.
Can you please run
npm update
for 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.
–Swapna
Genuitec Support
LeonardoParticipantI 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 advance
Brian FernandesModeratorLeonardo,
We do support projects with the newer
angular.json
format – 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.
LeonardoParticipantWell, 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 (1.11.0.20180924…)
Thanks
ignaciomModeratorLeonardo,
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…
myproject
– angular.jsonmyproject
– myangularsource
-angular.jsonBest Regards
Ignacio
LeonardoParticipantI’m attaching a snapshot.
Attachments:
You must be logged in to view attached files.
ignaciomModeratorLeonardo,
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.
Best Regards
Ignacio
ignaciomModeratorI’m attaching the file again just removing the extension, when you download it rename it by just adding the .jar extension to the file.
Cheers
Ignacio
ignaciomModeratorArgh!!! The forum system. Here you can find the file: https://wetransfer.com/downloads/8443e7f156be42551ad9718b015f7e2320181005200948/066a0d59ca5a30461912eb1c2952937720181005200948/4c7a35
Cheers
Ignacio
jhugohrMemberLeonardo,
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?
Best Regards,
Hugo HerreraAttachments:
You must be logged in to view attached files. -
AuthorPosts