@types/[email protected] package and had problems.Bumping from @types/webpack 4.0.0 -> 4.1.0 introduced this error on Typescript build:
node_modules/@types/webpack/index.d.ts(19,10): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'Tapable'.
node_modules/@types/webpack/index.d.ts(19,19): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'HookMap'.
node_modules/@types/webpack/index.d.ts(20,10): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'SyncBailHook'.
node_modules/@types/webpack/index.d.ts(20,24): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'SyncHook'.
node_modules/@types/webpack/index.d.ts(20,34): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'SyncLoopHook'.
node_modules/@types/webpack/index.d.ts(20,48): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'SyncWaterfallHook'.
node_modules/@types/webpack/index.d.ts(21,10): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'AsyncParallelBailHook'.
node_modules/@types/webpack/index.d.ts(21,33): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'AsyncParallelHook'.
node_modules/@types/webpack/index.d.ts(21,52): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'AsyncSeriesBailHook'.
node_modules/@types/webpack/index.d.ts(21,73): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'AsyncSeriesHook'.
node_modules/@types/webpack/index.d.ts(21,90): error TS2305: Module '"/Users/leebenson/dev/sandbox/wp4/node_modules/@types/tapable/index"' has no exported member 'AsyncSeriesWaterfallHook'.
Is there a temporary fix for this?
You can fix it with:
"@types/tapable": "0.2.4"
> yarn info @types/tapable dist-tags
yarn info v1.5.1
{ latest: '0.2.5',
'ts2.0': '0.2.4',
'ts2.1': '0.2.4',
'ts2.2': '0.2.4',
'ts2.3': '1.0.0',
'ts2.4': '1.0.0',
'ts2.5': '1.0.0',
'ts2.6': '1.0.0',
'ts2.7': '1.0.0',
'ts2.8': '1.0.0' }
DT needs to publish 1.0.0 as latest.
@AviVahl yarn info @types/tapable dist-tags now gives me latest: '1.0.2', as the latest version, but the issue still happens to me.
As a workaround, I placed the following on the package.json
"resolutions": {
"@types/tapable": "1.0.2"
},
That works, but a proper solution would be better.
Would be really good to get a proper solution here, are there any ideas on what might be the issue? I'll help where I can.
Still not working at my side (1.0.0 and 1.0.2) adding in packge json a well... this was working just now in same machine.. some latest update on webpack did it?
UPDATE: Found the fix https://github.com/webpack/tapable/issues/53#issuecomment-378772767
Most helpful comment
DT needs to publish 1.0.0 as latest.