Open cjayyy opened 5 years ago
When importing import getCatalog from "@catalogs"; in _app.tsx TSlint shouts "Cannot find module '@catalogs'."
import getCatalog from "@catalogs";
_app.tsx
Is there a way how to import catalogs more explicitly so there is no problem within checks?
@cJayyy You can try this in your typings/index.d.ts :
typings/index.d.ts
declare module "@catalogs" { const content: any; export default content; }
When importing
import getCatalog from "@catalogs";
in_app.tsx
TSlint shouts "Cannot find module '@catalogs'."Is there a way how to import catalogs more explicitly so there is no problem within checks?