slider
slider copied to clipboard
Current @babel/runtime not compatible with webpack 5
Hey, thanks for the great lib. However, it couldn't be bundled via webpack 5 (using corejs-3). The same issue (link below) happened exactly when using an older version of @babel/runtime, but fixed in @babel/[email protected].
ERROR in ./node_modules/@babel/runtime/helpers/esm/get.js 1:0-44
Module not found: Error: Can't resolve './superPropBase' in '/Users/andy/clarity/node_modules/@babel/runtime/helpers/esm'
Did you mean 'superPropBase.js'?
BREAKING CHANGE: The request './superPropBase' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '*.mjs' file or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
https://github.com/babel/babel/issues/12003
https://github.com/webpack/webpack/issues/11467