Webpack loader cannot find module
问题 Edit 2: The problem is not with webpack but with typescript. Something with declaring "*.md" as a module in a separate declaration file called *.d.ts Edit: Confirmed the issue is not with webpack itself, since I got the following to work: import txt from '../documents/test.md' export default { txt, } Trying to load text files for rendering client side. I'm following instructions for raw-loader: https://webpack.js.org/loaders/raw-loader/ I'm also using TypeScript. import * as React from 'react