react-powerplug: react-powerplug breaking build after babel 7 upgrade

Hi!

Using version 1.0.0-rc.1 breaks the build when upgrading to babel 7.

Module not found: Error: Can't resolve '@babel/runtime/helpers/builtin/es6/objectWithoutProperties' in '.../node_modules/react-powerplug/dist'

Any clue what is happening?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 16 (1 by maintainers)

Most upvoted comments

Any updates on this? Is there a way to make powerplug work with yarn?

It’s a problem with Storybook v4’s webpack config aliasing @babel/runtime to the version that’s in the root project’s dependencies

https://github.com/storybooks/storybook/blob/a9e8e42744721144063d2c9e03ec25bc49682d08/lib/core/src/server/config/webpack.config.dev.js#L101-L103

update: temporary workaround from SleepWalker here https://github.com/storybooks/storybook/issues/4088#issuecomment-416530018

new webpack.NormalModuleReplacementPlugin(
      /@babel\/runtime\/helpers\/builtin/,
      (resource) => {
        // eslint-disable-next-line no-param-reassign
        resource.request = resource.request.replace(
          '@babel/runtime/helpers/builtin',
          'react-powerplug/node_modules/@babel/runtime/helpers/builtin',
        );
      },
    ),

Any updates? I can’t use it with latest version of recompose D:

I was also seeing this on a Gatsby v2 development site. Same error with yarn and npm.

Downgrading to the 0.1.x release got things working but a fix would be good.

There was a problem with beta version of @babel/runtime, but it’s gone when you’ve released 1.0.0. Hooray!