NativeScript / nativescript-angular

Integrating NativeScript with Angular
http://docs.nativescript.org/angular/tutorial/ng-chapter-0
Apache License 2.0
1.21k stars 241 forks source link

IVY Compile Error: The target entry-point "dataform-directives" has missing dependencies: - ./../ #2151

Open Meyer-dev opened 4 years ago

Meyer-dev commented 4 years ago

When compiling my Nativescript-angular application with the modules recommended in #2124 I get the following error:

///////////////////////////////////////////////////////////////////////////////////////

WARNING in Entry point 'dataform-directives' contains deep imports into 'C:/Users/meyer.000/Pronto/node_modules/@nativescript/angular/element-registry'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

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

////////////////////////////////////////////////////////////////////////////////////////

My ngcc.config.js file is the default one recommended in #2124.

Any help regarding what additions I could make to this file to potentially solve the problem would be greatly appreciated. @NathanWalker any suggestions?

NathanWalker commented 4 years ago

@Meyer-dev and I discussed this via Slack and found these 2 things helped his case. Making sure the dataform plugin was specified in ngcc.config.js file, for example:

  1. ngcc.config.js

    module.exports = {
    "packages": {
     "nativescript-ui-dataform": {
            "entryPoints": {
                "angular": {
                    "override": {
                      "main": "./dataform-directives.js",
                      "typings": "./dataform-directives.d.ts",
                    },
                    "ignoreMissingDependencies": true,
                  }
            }
        }
    }
    }
  2. Also making sure his tsconfig.json had "skipLibCheck": true, instead of false.

govi2010 commented 4 years ago

@NathanWalker This 2 step did not work for me.

kapil9-10 commented 4 years ago

Anyone have the answer to this question. it didn't work for me either

it throws

ERROR in ../node_modules/nativescript-ui-dataform/ivy_ngcc__/angular/dataform-directives.js Module not found: Error: Can't resolve './../' in 'C:\Users\shama\TravelGo\node_modules\nativescript-ui-dataform__ivy_ngcc\angular' @ ../node_modules/nativescript-ui-dataform/__ivy_ngcc__/angular/dataform-directives.js 4:10-26 @ ./app/app.module.ts @ ./main.ts

error

kapil9-10 commented 4 years ago

@NathanWalker This 2 step did not work for me.

did you solved that issue ... if yes please let us know

@Meyer-dev did you found the answer