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

When updated to 0.8.4, and ran in node test, property 'format' is undefined #83

Open
ngbrown opened this issue Nov 28, 2018 · 0 comments

Comments

@ngbrown
Copy link

ngbrown commented Nov 28, 2018

I updated from v0.8.2 to v0.8.4 (also checked v0.8.3), and my unit tests now failing with:

    TypeError: Cannot set property 'format' of undefined

      at D (node_modules/react-moment/dist/index.js:11:12116)
      at Object.<anonymous> (node_modules/react-moment/dist/index.js:11:13748)
      at node_modules/react-moment/dist/index.js:11:54
      at Object.<anonymous> (node_modules/react-moment/dist/index.js:11:152)
      at t (node_modules/react-moment/dist/index.js:1:470)
      at Object.<anonymous> (node_modules/react-moment/dist/index.js:1:1843)
      at t (node_modules/react-moment/dist/index.js:1:470)
      at node_modules/react-moment/dist/index.js:1:557
      at node_modules/react-moment/dist/index.js:1:562
      at node_modules/react-moment/dist/index.js:1:108

I'm running Jest tests with "testEnviroment": "node". I'm assuming non-DOM usage would also be needed for server-side-rendering.

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

1 participant