You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A module is missing in the dll chunk causing an error:
Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (dll.js:21)
at Module../test-package/index.js (dll.js:121)
at __webpack_require__ (dll.js:21)
at Module../dll.js (dll.js:95)
at __webpack_require__ (dll.js:21)
at Object.<anonymous> (index.js:107)
at __webpack_require__ (index.js:20)
at Module.<anonymous> (index.js:100)
at __webpack_require__ (index.js:20)
at Object.<anonymous> (index.js:91)
A library needs to re-export one of it's module in two steps like constants below to get this bug:
// index.js of 'test-package'import*as_constantsfrom'./constants';exportvarconstants=_constants;export{defaultassomeOtherFunction}from'./someOtherFunction';
Then if you try to import import { constants } from 'test-package' in your dll. The end chunk will have a reference to the module ./someOtherFunction but it won't actually be in the chunk causing the above error.
This only happens in a DLL
If the current behavior is a bug, please provide the steps to reproduce.
Bug report
What is the current behavior?
A module is missing in the dll chunk causing an error:
A library needs to re-export one of it's module in two steps like
constants
below to get this bug:Then if you try to import
import { constants } from 'test-package'
in your dll. The end chunk will have a reference to the module./someOtherFunction
but it won't actually be in the chunk causing the above error.This only happens in a DLL
If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/skimi/webpack-dll-bug
What is the expected behavior?
Missing module reference either completely removed because it can totally be tree-shaked or it can't at all and it should be kept in the chunk.
Other relevant information:
I got this error while using the redux-form library that has this kind of export.
Related issue at redux-form redux-form/redux-form#4618
The text was updated successfully, but these errors were encountered: