Unable to do npm start - angular8

Can anyone help me the cause or solution of the following error?
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 164:194-212
"export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 612:313-331
"export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 753:139-157
"export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 166:0-27
"export 'ɵɵngDeclareClassMetadata' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 614:0-27
"export 'ɵɵngDeclareClassMetadata' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 759:0-27
"export 'ɵɵngDeclareClassMetadata' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 165:24-47
"export 'ɵɵngDeclareComponent' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 613:24-47
"export 'ɵɵngDeclareDirective' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 164:24-45
"export 'ɵɵngDeclareFactory' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 612:24-45
"export 'ɵɵngDeclareFactory' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 753:21-42
"export 'ɵɵngDeclareFactory' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 756:21-43
"export 'ɵɵngDeclareInjector' (imported as 'i0') was not found in '#angular/core'
ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 754:21-43
"export 'ɵɵngDeclareNgModule' (imported as 'i0') was not found in '#angular/core'
Because of this, I am unable to start my service in Angular 8.
I am using node js 12.22.3, npm version 6.14.3 and
Package Version
-----------------------------------------------------------
#angular-devkit/architect 0.803.29
#angular-devkit/build-angular 0.803.29
#angular-devkit/build-optimizer 0.803.29
#angular-devkit/build-webpack 0.803.29
#angular-devkit/core 8.3.29
#angular-devkit/schematics 8.3.29
#angular/cdk 8.2.3
#angular/cli 8.3.29
#angular/flex-layout 8.0.0-beta.27
#angular/material 8.2.3
#ngtools/webpack 8.3.29
#schematics/angular 8.3.29
#schematics/update 0.803.29
ng-packagr 5.7.1
rxjs 6.6.7
typescript 3.5.3
webpack 4.46.0
Thanks.

make changes to your package.json. "ng2-tooltip-directive": "2.10.3" instead of "ng2-tooltip-directive": "^2.10.3" or "ng2-tooltip-directive": "~2.10.3"

Related

ERROR in ./node_modules/file-base64/index.js Module not found: Error: Can't resolve 'fs'

I'm using vue js and laravel mix.
I dl the file-base64 npm package.
And when i compile, i get this error =>
ERROR in ./node_modules/file-base64/index.js Module not found: Error: Can't resolve 'fs'
in the file-base-64 it import var fs = require('fs');
But i have access the fs.d.ts file. It feels the when it compile, it don't have a direct access.
Do someone got the same issue?

Failed to compile. ./src/main.js Module not found: Error: Can't resolve '.plugins/vuetify' in 'C:\vue\testvueapp\src'

I have this error Failed to compile. ./src/main.js Module not found: Error: Can't resolve '.plugins/vuetify' in 'C:\vue\testvueapp\src' but I have installed it
and this is my main.js
import Vue from 'vue';
import App from './App.vue';
import vuetify from '.plugins/vuetify';
Vue.config.productionTip = false;
new Vue({
vuetify,
render: (h) => h(App),
}).$mount('#app');
Seems like path issue. tryout below
import vuetify from '#/plugins/vuetify'
Use
import vuetify from './plugins/vuetify'
Notice the slightest of path difference before plugins here
the issue because dependency was not found. do following and reload the project will fix the issue
npm install --save vuetify/lib/framework
Solved Issue

ng-stripe-checkout module import in angular 9

I have problem with build after upgrading to Angular9. This is the error I get:
ERROR in node_modules/ng-stripe-checkout/src/stripe-checkout.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class
any ideas?

vuetify says that This dependency was not found

I got an error when building a vue-cli app with vuetify framework.
This dependency was not found:
* vuetify/es5/components/VCardTitle in ./src/plugins/vuetify.js
To install it, you can run: npm install --save vuetify/es5/components/VCardTitle
When I try to install it it says:
error Received malformed response from registry for undefined. The registry may be down.
Any ideas what it could be?
package json: "vuetify": "^1.1.12"
Im using vuetify a-la-carte.
I have also added VCardTitle to the vuetify.js file in imports and components.
You're importing from 'vuetify' as it is in Vue Official Documentation example (https://v1.vuetifyjs.com/en/guides/a-la-carte).
Change it to 'vuetify/lib'.
Example:
import {
Vuetify, // required
VApp, // required
VNavigationDrawer,
VFooter,
VToolbar,
transitions,
} from 'vuetify/lib';

Typescript 2.0 #Types/Express | Cannot find module

The Express type definitions for Typescript 2.0 result in unexpected errors when executing after running npm install #types/express and tsc -t ES6 for ES6. The code compiles fine without the ES6 flag. Can anyone explain? I also have issues with other type definitions such as ssh2.
Here are the steps to reproduce:
> mkdir humbug
> cd humbug
> touch blank.ts
> tsc blank.ts
> tsc -t ES6 .\blank.ts
Everything is fine so far.
> npm init .
...
> npm install #types/express
Things start going bad now
> tsc blank.ts
> tsc -t ES6 .\blank.ts
node_modules/#types/express/index.d.ts(16,30): error TS2307: Cannot find module 'serve-static'.
node_modules/#types/serve-static/index.d.ts(16,20): error TS2307: Cannot find module 'mime'.
Ok, well I better make sure that the types for serve-static and mime are installed.
> npm install #types/serve-static #types/mime
humbug#1.0.0 C:\Users\me\Desktop\humbug
`-- (empty)
npm WARN humbug#1.0.0 No description
npm WARN humbug#1.0.0 No repository field.
npm ERR! code 1
Weird I got an ERR! code but the types were downloaded, Lets try compiling again
> tsc blank.ts
> tsc -t ES6 .\blank.ts
node_modules/#types/express/index.d.ts(16,30): error TS2307: Cannot find module 'serve-static'.
node_modules/#types/serve-static/index.d.ts(16,20): error TS2307: Cannot find module 'mime'.
Same error as last time.
My Environment:
Windows 10
Node v6.6.0
TSC 2.0.3
Other definitions with the same problem:
node_modules/#types/cors/index.d.ts(9,26): error TS2307: Cannot find module 'express'.
node_modules/#types/multer/index.d.ts(6,26): error TS2307: Cannot find module 'express'.
node_modules/#types/ssh2/index.d.ts(26,8): error TS2307: Cannot find module 'ssh2-streams'.
I am still learning all this stuff (being .NET programmer), but I had similar issue this afternoon and this configuration seem to be working:
{
"compilerOptions": {
"module": "system",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"moduleResolution": "node",
"sourceMap": true,
"typeRoots": [ "node_modules/#types" ]
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"node_modules/#types",
"**/*.spec.ts"
]
}