I'm importing a custom module like this in a .tsx
file:
import { LinkContainer } from './typings/LinkContainer';
Visual Studio builds without a problem but when I try to run webpack
I get the following error:
ERROR in ./Features/Menu/Menu.tsx
Module not found: Error: Can't resolve './typings/LinkContainer' in 'C:\Users\<user>\Documents\<solution>\<project>\Features\Menu'
@ ./Features/Menu/Menu.tsx 19:22-56
@ ./Features/App.tsx
@ ./Features/index.tsx
@ multi react-hot-loader/patch ./Features/index.tsx
File content for LinkContainer.d.ts
:
import { ComponentClass } from "react";
import { NavLinkProps } from "react-router-dom";
type LinkContainer = ComponentClass<NavLinkProps>;
export const LinkContainer: LinkContainer;