Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'n.map is not a function' error - line 441 of SlideDeck.js #191

Closed
sqlsolver opened this issue Oct 4, 2018 · 5 comments
Closed

'n.map is not a function' error - line 441 of SlideDeck.js #191

sqlsolver opened this issue Oct 4, 2018 · 5 comments

Comments

@sqlsolver
Copy link

React app will not load. Console error:

react-dom.production.min.js:4203 TypeError: n.map is not a function
    at t.value (SlideDeck.js:441)
    at Ao (react-dom.production.min.js:3796)
    at Do (react-dom.production.min.js:3979)
    at vi (react-dom.production.min.js:4624)
    at yi (react-dom.production.min.js:4642)
    at Zi (react-dom.production.min.js:4905)
    at Yi (react-dom.production.min.js:4863)
    at qi (react-dom.production.min.js:4854)
    at $i (react-dom.production.min.js:4813)
    at wi (react-dom.production.min.js:4741)

with error in SlideDeck.js at line #441:

      }, _react2.default.createElement(Wrapper, _extends({}, this.state, {
        slides: slides,
        width: width,
        height: height,
        update: this.update
      }), _react2.default.createElement(_GoogleFonts2.default, null), _react2.default.createElement(_Carousel2.default, {
        index: index
      }, slides.map(function (Component, i) {         //THIS IS 441
        return _react2.default.createElement(_Slide2.default, _extends({
          key: i,
          id: 'slide-' + i
        }, context, {
          index: i,
          className: 'Slide',
          active: i === index,
          metadata: metadata[i]
        }), _react2.default.createElement(Component, null));

Possibly related to #174 in this repo, and CRA #5149. Used customize-cra and react-app-rewired, as well as your suggestion to install babel-core@7.0.0-bridge.0.

@jxnblk
Copy link
Owner

jxnblk commented Oct 4, 2018

Are you using the mdx-deck/loader and not the official mdx loader?

@sqlsolver
Copy link
Author

Yes. If you want to take a look I invited you to collaborate. It's a pretty bare bones app still.

@iamstarkov
Copy link

@sqlsolver is your repo private? could you open it for public?

@sqlsolver
Copy link
Author

sqlsolver commented Oct 5, 2018

@iamstarkov I invited you.

@jxnblk
Copy link
Owner

jxnblk commented Apr 20, 2019

Not sure what the issue was here. Hopefully it's no longer an issue, but if you're still running into problems, please provide a reproduction in a public repo

@jxnblk jxnblk closed this as completed Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants