Closed
Description
Please read right to the bottom of this thread for an approach that seems to work.
Using webpack@2.1.0-beta.23
:
ERROR in ./src/index.tsx
Module build failed: TypeError: Cannot read property 'unsafeCache' of undefined
at makeResolver (/Users/foo/node_modules/ts-loader/resolver.js:35:57)
at ensureTypeScriptInstance (/Users/foo/node_modules/ts-loader/index.js:207:20)
at Object.loader (/Users/foo/node_modules/ts-loader/index.js:387:14)
Used as:
export const tsLoader = {
test: /\.ts(x?)$/,
loader: `ts-loader?silent=true`
};