hi, I have angular 5 project and currently face with a problem:
in my app.component.ts
import {Connex} from '@vechain/connex';
node_modules/@vechain/connex/index.d.ts' is not a module
tsconfig.app.json is:
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "es2015",
"types": ["@vechain/connex"]
},
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}
tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"types": ["@vechain/connex"], // tried this too ->["node_modules/@vechain/connex"]
"lib": [
"es2017",
"dom"
]
},
"exclude": [
"dist"
],
"include": [
"**/*.ts"
]
}
in addition:
ERROR in node_modules/@vechain/connex/index.d.ts(438,19): error TS1005: ';' expected. node_modules/@vechain/connex/index.d.ts(439,19): error TS1005: ';' expected. node_modules/@vechain/connex/index.d.ts(447,19): error TS1005: '>' expected. node_modules/@vechain/connex/index.d.ts(448,19): error TS1005: ';' expected. node_modules/@vechain/connex/index.d.ts(449,9): error TS1109: Expression expected. node_modules/@vechain/connex/index.d.ts(540,15): error TS1005: ';' expected. node_modules/@vechain/connex/index.d.ts(541,15): error TS1005: ';' expected.
Angular CLI: 1.7.4
Node: 8.11.2
OS: win32 x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack-raphael: 2.1.4
webpack: 3.11.0