Answers for "typescript node require json file"

1

import json typescript

// add this in your tsconfig.json file:
{
  "compilerOptions": {
    "resolveJsonModule": true
  }
}
Posted by: Guest on October-01-2021
2

typescript how to mode json files when compile

{
  "compilerOptions": {
     "resolveJsonModule": true,
   },
   "include": [
     "*/src/**/package.json"
  ]
}
Posted by: Guest on January-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language