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
/home/icholy/src/playground/hexoid-webpack/dist/main.js:90
hexoid(25);
^
TypeError: hexoid is not a function
at /home/icholy/src/playground/hexoid-webpack/dist/main.js:90:17
at Object.<anonymous> (/home/icholy/src/playground/hexoid-webpack/dist/main.js:92:12)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
The text was updated successfully, but these errors were encountered:
Master does seem to work properly. For now, I am using ES and import hexoid from 'hexoid';, but I believe on master, it would be a breaking semver major change to import { hexoid } from 'hexoid';
The v1.0.0 release causes issues with webpack because the commonjs & ESM modules don't export the same API.
hexoid
in formidable@2.0.1 node-formidable/formidable#871I noticed that this has been fixed in master, but hasn't been published. Can this happen?
edit: Here's a minimal repro of the problem:
main.js
webpack.config.js
Steps:
Output:
The text was updated successfully, but these errors were encountered: