I am currently working on a test project using TypeScript and Webpack. I have an index.ts file and a base.less (or base.css) file imported in the index.ts, but I am experiencing errors with the css-loader. Interestingly, everything works fine when the LESS (or CSS) file is not imported in the .ts file.
I also have a larger project that uses JS only (no TypeScript) and it works perfectly with the same webpack.config file (using babel instead of ts loader).
Contact me at: [email protected]
All the necessary loaders are installed.
Here is the webpack.config.js and the Bitbucket link to the test project
ERROR in ./~/css-loader/lib/css-base.js Module build failed: Error: Final loader didn't return a Buffer or String