Closed paibamboo closed 5 years ago
can't we tell typescript to ignore anything inside node_modules
?
As far as I know, we can't exclude it if our codes reference to it. As mentioned in the faq
if the file was found, it will be included regardless if it was excluded in the previous steps.
An alternative is to use skipLibCheck
but that will exclude all *.d.ts
files.
weird, I'm okay with enabling esModuleInterop, but maybe we should write a lint rule which forces react import to have only 1 way?
FYI, we still need to use the pattern import * as React from "react";
because styleguidist does not work when we do import React from "react";
.
Closed by #251
But we need to set
esModuleInterop
totrue
in tsconfig.json because the way router5 imports reactSee https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html for more info about
esModuleInterop