-
Notifications
You must be signed in to change notification settings - Fork 44
Allow newer versions of Angular as dependencies #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The demos in #134 use the generated output in the dist folder. This approach works for me as well. When I copy the dist folder of the output that was earlier generated in a Angular 12 project, then I can reference that. But when I just add the npm package to a Angular 19 project, then it fails, as this package is dependent on Angular 12 and Angular 12 isn't compatible with the current version of Node.
|
@ArjanKw alright, so you suggest adding > 12 on package.json just to prevent issues with people installing the package in modern Angular version right? But do we have to modify the |
@alvarotrigo not really all from version 12 of Angular onwards, because sometime new version will have different configuration also, Warn Npm install for package is not stopping when install package.json We not need update package.json "peerDependencies": { when change to ES2022 will effect to oldest version, I will try update Angular 18 and Angular 19 Demos, is like need update like deprecated config browserTarget > buildTarget, etc |
I was about to send a comment that confirms what you just posted. When I create a new Angular 19 project and follow the installation instruction (which has one step: Apart from that, the demo's are indeed not using the npm package, as this is in the package.json of the Angular 19 demo:
It uses the compiled output, which has been put into the dist folder by the post-build step in angular-fullpage/package.json:
The demo ties this dist folder to '@fullpage/angular-fullpage' by linking it in the tsconfig.json (see demo/angular19/tsconfig.json):
So in my opinion the demo doesn't give a demo on how to use the npm package, it shows that the compiled Angular 12 output can be copied into a Angular 12 - 19 project and be referenced/used with an extra step. When I do use the npm package (as the installation instruction suggests that is the way to use this package), npm install gives the long list of warnings and the import fails. It would indeed be nice if the demo's are updated to showcase how to use the npm package. |
That's a good point. What do you think @alidihaw ? |
@alvarotrigo |
Thank you both, the new version works. With the correct folder structure the right package.json is loaded. This one is compatible with newer Angular versions:
The import works again and the NPM node compatibility warnings dissapear. As #145 was opened for this, I think we can close this #143 PR and merge #145? Thank you for your swift action, which allow me to finish the upgrade to Angular 19. |
To prevent dependency on an old Angular version, which causes Node warnings, as it requires an older version of Node.