apm-agent-nodejs-opentracing icon indicating copy to clipboard operation
apm-agent-nodejs-opentracing copied to clipboard

types.d.ts is not a module

Open peterdanis opened this issue 3 years ago • 0 comments

Hi, using v2.0.1 in typescript (v4.4.3) project and getting .../node_modules/elastic-apm-node-opentracing/types.d.ts' is not a module error.

Our tsconfig file:

{
    "compilerOptions": {
      "allowJs": false,
      "allowSyntheticDefaultImports": true,
      "emitDecoratorMetadata": true,
      "esModuleInterop": true,
      "forceConsistentCasingInFileNames": true,
      "inlineSourceMap": true,
      "inlineSources": true,
      "isolatedModules": true,
      "module": "commonjs",
      "moduleResolution": "node",
      "noUncheckedIndexedAccess": true,
      "outDir": "./build",
      "resolveJsonModule": true,
      "rootDir": ".",
      "skipLibCheck": true,
      "strict": true,
      "target": "es2019",
      "experimentalDecorators": true
    },
    "exclude": ["node_modules", "tests"],
    "ts-node": {
      "files": true
    }
  }

peterdanis avatar Oct 27 '21 08:10 peterdanis