dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump async from 0.2.9 to 2.6.4 … (compare)
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump async from 2.6.0 to 2.6.4 … (compare)
dependabot[bot] on npm_and_yarn
Bump async from 0.2.9 to 3.2.2 … (compare)
dependabot[bot] on npm_and_yarn
Bump async from 2.6.0 to 3.2.2 … (compare)
My friend told me that when constructor
is used in a function, Webpack spits out an error on the console saying Uncaught TypeError: _WEBPACK_IMPORTED_MODULE_0_ thatmodule__.a is not a constructor
. He showed me the error. He said, in order to fix it, the word constructor
should be replaced with initialize
. The module being used and exported is ampersand-state
and it's in src/profile/index.js.
import State from 'ampersand-state';
export default State.extend({......
// blah blah, code removed for clarity
Then on the outer index.js(not src/profile/index.js), the code is
import Profile from 'src/profile';
export default module.exports = Profile;
What are your thoughts on the constructor issue?