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
Currently I'm unable to set babel's preset-env to use the corejs: 3 option, which involves installing core-js@^3, without react-cosmos failing on an error about @babel/runtime-corejs2:
[Cosmos] Export Failed! See errors below:
ModuleNotFoundError: Module not found: Error: Can't resolve 'core-js/library/fn/object/values' in '<my-package path>/node_modules/@babel/runtime-corejs2/core-js/object'<stack trace>
Mkay, tell me more...
I'm using a custom webpack config, with a custom babel config setting the value with a custom babel preset... so I'm definately not discounting that this could be an issue with my setup and not an issue with cosmos. I'll try to get some time in the next day to setup a simplified example to replicate, but I wanted to get the issue up in case someone just knows how to fix this.
I'd love to contirbute towards fixing this, but I'm really struggling to work out how @babel/runtime-corejs2 even becomes a dependency of react-cosmos's published package.
What's up?
Currently I'm unable to set babel's preset-env to use the
corejs: 3option, which involves installingcore-js@^3, without react-cosmos failing on an error about@babel/runtime-corejs2:Mkay, tell me more...
I'm using a custom webpack config, with a custom babel config setting the value with a custom babel preset... so I'm definately not discounting that this could be an issue with my setup and not an issue with cosmos. I'll try to get some time in the next day to setup a simplified example to replicate, but I wanted to get the issue up in case someone just knows how to fix this.
I'd love to contirbute towards fixing this, but I'm really struggling to work out how
@babel/runtime-corejs2even becomes a dependency ofreact-cosmos's published package.