React-popper: Demo does not build

Created on 31 Jan 2019  路  2Comments  路  Source: popperjs/react-popper

Steps to reproduce the problem

  1. Clone repo @ 1.3.3
  2. npm install
  3. npm run demo:dev

What is the expected behavior?

Demo builds and displays in browser

What went wrong?

/[...]/react-popper/node_modules/react-spring/dist/react-spring.es.js:2:27: Cannot resolve dependency '@babel/runtime/helpers/builtin/es6/inheritsLoose'
  1 | import _objectSpread from '@babel/runtime/helpers/builtin/es6/objectSpread';
> 2 | import _inheritsLoose from '@babel/runtime/helpers/builtin/es6/inheritsLoose';
    |                           ^
  3 | import _extends from '@babel/runtime/helpers/builtin/es6/extends';
  4 | import _objectWithoutProperties from '@babel/runtime/helpers/builtin/es6/objectWithoutProperties';
  5 | import React from 'react';

Any other comments?

Tried npm i @babel/runtime@latest and received a different build error:

/react-popper/node_modules/react-spring/dist/react-spring.es.js:1:26: Cannot resolve dependency '@babel/runtime/helpers/builtin/es6/objectSpread'
> 1 | import _objectSpread from '@babel/runtime/helpers/builtin/es6/objectSpread';
    |                          ^
  2 | import _inheritsLoose from '@babel/runtime/helpers/builtin/es6/inheritsLoose';
  3 | import _extends from '@babel/runtime/helpers/builtin/es6/extends';
  4 | import _objectWithoutProperties from '@babel/runtime/helpers/builtin/es6/objectWithoutProperties';

Packages versions

  • Popper.js: 1.14.4
  • react-popper: 1.3.3

Most helpful comment

If you open up demo/index.js and remove import { Transition } from 'react-spring'; and then change <Transition> element to a <div> it will work.

All 2 comments

If you open up demo/index.js and remove import { Transition } from 'react-spring'; and then change <Transition> element to a <div> it will work.

+1

Was this page helpful?
0 / 5 - 0 ratings