Manav Rathi 1 anno fa
parent
commit
38d6464f55
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8 2
      web/packages/build-config/tsconfig-next.json

+ 8 - 2
web/packages/build-config/tsconfig-next.json

@@ -3,6 +3,12 @@
     "extends": "@/build-config/tsconfig-typecheck.json",
     "extends": "@/build-config/tsconfig-typecheck.json",
     "compilerOptions": {
     "compilerOptions": {
         /* Also indicate expectation of a WebWorker runtime */
         /* Also indicate expectation of a WebWorker runtime */
-        "lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"]
-    }
+        "lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"],
+
+        /* Next.js insists on adding these. Sigh. */
+        "allowJs": true,
+        "incremental": true
+    },
+    /* Next.js insists on adding this, even though we don't need it. */
+    "exclude": ["node_modules"]
 }
 }