avadev/AvaTax-REST-V2-JS-SDK

Could not find a declaration file for module 'node-fetch'

dan2kx opened this issue · 1 comments

dan2kx commented

with the latest version 23.3.0, i am getting the above type error when trying to build my project. the error is originating in this file node_modules/avatax/lib/utils/logObject.d.ts i was not getting this error on 22.11.1

here is my tsconfig file:

{
  "compilerOptions": {
    "target": "esnext",
    "lib": ["es6", "dom", "dom.iterable", "esnext"],
    "module": "commonjs",
    "moduleResolution": "node",
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "allowJs": false,
    "baseUrl": ".",
    "outDir": "dist",
    "sourceMap": true,
    "esModuleInterop": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "resolveJsonModule": true,

    "paths": {
      "@/*": ["./src/*"]
    },
  },

  "include": ["./**/*"],

  "exclude": ["node_modules/**/*"]
}

@dan2kx Thank you for pointing out this issue. I released a fix for that, it is available in 23.3.1. Let us know if you have any other problems.