Skip to content

Angular 9 #1355

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

Open
ReazerDev opened this issue Feb 13, 2020 · 12 comments
Open

Angular 9 #1355

ReazerDev opened this issue Feb 13, 2020 · 12 comments

Comments

@ReazerDev
Copy link

Hi, is there a version for Angular 9 in the works?

I get

ERROR in The target entry-point "listview-directives" has missing dependencies: - ./../

when I'm trying to build my Project using Angular 9

@NickIliev
Copy link
Collaborator

@ReazerDev there is no official support for Angular 9 and Ivy (so far). But you could use it by fixing the above import and using the following version of nativescript-angular

rm -rf node_modules platforms hooks webpack.config.js
npm i nativescript-angular@ivy --save
./node_modules/.bin/update-app-ng-deps

and fixing the above import (directly in the source code in node_modules/nativescript-ui-listview)

replace ./.. with nativescript-ui-listview.

The ivy tag of nativescript-angular is still in a working state and I am not recommending it for production.

@VaidasDatenis
Copy link

Something familliar is going on here too...

WARNING in Entry point 'side-drawer-directives' contains deep imports into 'C:/Users/Vaidas/Desktop/PROJECTS/Angular/ng-course/node_modules/@nativescript/angular/element-registry'. This is probably not a problem, but may cauular/ng-course/node_modules/@nativescrse the compilation of entry points to be out of order.                                                          be out of order.

ERROR in The target entry-point "side-drawer-directives" has missing dependencies:
 - ./..

@daweedm
Copy link

daweedm commented Jun 21, 2020

Something familliar is going on here too...

WARNING in Entry point 'side-drawer-directives' contains deep imports into 'C:/Users/Vaidas/Desktop/PROJECTS/Angular/ng-course/node_modules/@nativescript/angular/element-registry'. This is probably not a problem, but may cauular/ng-course/node_modules/@nativescrse the compilation of entry points to be out of order.                                                          be out of order.

ERROR in The target entry-point "side-drawer-directives" has missing dependencies:
 - ./..

did you managed to solve this ?

@arun-s-aot
Copy link

I am also facing a similar issue when i tried running my nativescript angular 9 project .
image
What could be the reason ? I hope i am having the stable code having nativescript support to angular 9 . Also , my code was working fine yesterday :-)

@govi2010
Copy link

Hello Team ,
I am getting below error with angular 9

 - nativescript-angular/element-registry
 - ./../
 - tns-core-modules/ui/core/view
 - tns-core-modules/data/observable
 - tns-core-modules/color

@Victor1993
Copy link

Hola, hay alguna solución para este problema mencionado?

ERROR in The target entry-point "listview-directives" has missing dependencies:

@susymercado
Copy link

@NickIliev Can you explain me more? I'm new in NativeScript with Angular 9
This is my error, I try use RadListView

ERROR in The target entry-point "listview-directives" has missing dependencies:

  • ./../

Thanks

@DevKitu
Copy link

DevKitu commented Jul 14, 2020

Hey @susymercado and other:
follow the steps mentioned here:
https://github.com/NativeScript/nativescript-angular/wiki/Updating-and-developing-for-@nativescript-angular-v9-with-Ivy-or-without#problem-2

OR simply change your ngcc.config.js to: (a copy and replace your existing ngcc.config.js file in the root directory)
module.exports = { "packages": { "@nativescript/angular": { entryPoints: { ".": { override: { main: "./index.js", typings: "./index.d.ts", }, ignoreMissingDependencies: true, } }, ignorableDeepImportMatchers: [ /zone.js\//, /tns-core-modules\//, /@nativescript\/core\// ] }, "nativescript-datetimepicker": { entryPoints: { ".": { override: { main: "./index.js", typings: "./index.d.ts", }, ignoreMissingDependencies: true, }, "angular": { override: { main: "./index.js", typings: "./index.d.ts", }, ignoreMissingDependencies: true, } }, ignorableDeepImportMatchers: [ /tns-core-modules\//, /@nativescript\/core\//, /@nativescript\/angular\// ] }, "nativescript-ui-sidedrawer": { entryPoints: { "angular": { override: { main: "./side-drawer-directives.js", typings: "./side-drawer-directives.d.ts", }, ignoreMissingDependencies: true, } }, ignorableDeepImportMatchers: [ /tns-core-modules\//, /@nativescript\/core\//, /@nativescript\/angular\// ] }, "nativescript-ui-listview": { entryPoints: { "angular": { override: { main: "./listview-directives.js", typings: "./listview-directives.d.ts", }, ignoreMissingDependencies: true, } }, ignorableDeepImportMatchers: [ /tns-core-modules\//, /@nativescript\/core\//, /@nativescript\/angular\// ] } } }

@susymercado
Copy link

@DevKitu I replaced the file, this is the new error. Thanks

ERROR in ../node_modules/nativescript-ui-listview/ivy_ngcc/angular/listview-directives.js
Module not found: Error: Can't resolve './../' in 'C:\Users\LAPTI-ACAD\Documents\NativeScriptProjets\splash\node_modules\nativescript-ui-listview_ivy_ngcc_\angular'
@ ../node_modules/nativescript-ui-listview/ivy_ngcc/angular/listview-directives.js 5:10-26
@ ./app/app.module.ts
@ ./main.ts

@bizzfs
Copy link

bizzfs commented Jul 31, 2020

So the ./.. missing dependency issue is in node_modules package.

For example, there is node_modules/nativescript-ui-sidedrawer/angular/side-drawer-directives.js and it contains statements such as require("./..") that appears to be correct

Also there is a node_modules/nativescript-ui-sidedrawer/ivy_ngcc/angular/side-drawer-directives.js that is one level deeper. in that case require("./../..") should be placed instead of require("./..") statements. This path mismatch causes the issue

In order to temporarily work around the issue I use https://www.npmjs.com/package/patch-package and fix the mistakes directly in node_modules until the lib gets fixed by the maintainers

Hope this helps

@tidusjar
Copy link

Is there any update on this issue? Currently facing this in ng 10 upgrade where there is no ngcc.config

@tidusjar
Copy link

@bizzfs can you share your patch file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests