Import JSON into Angular 7 during build typings.d.ts declare module '*.json' { const value: any; export default value; } content.ts import * as contentRaw from './content.json'; // Declare proper types instead `any` export const content: any = contentRaw;