Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

useCookies is not a function or its return value is not iterable #2698

Closed
vipinlahoti opened this issue Mar 15, 2021 · 2 comments
Closed

useCookies is not a function or its return value is not iterable #2698

vipinlahoti opened this issue Mar 15, 2021 · 2 comments

Comments

@vipinlahoti
Copy link

Describe the bug
useCookies is not a function or its return value is not iterable

To Reproduce
Steps to reproduce the behavior:
fresh pull from 'master' branch and yarn install.

Device (if applicable):

  • OS: macOS 10.15.6
  • Browser Chrome
  • Version 89.0.4389.82 (Official Build) (x86_64)

Additional context
Error while server-rendering. date: Mon Mar 15 2021 18:38:19 GMT+0530 (India Standard Time) url: [object Object]
TypeError: useCookies is not a function or its return value is not iterable
at useLocaleData (packages/vulcan:core/lib/modules/containers/localeData.js:29:21)
at withLocaleData (packages/vulcan:core/lib/modules/containers/localeData.js:43:22)
at processChild (/Users/vipin.lahoti/Documents/meteor/Vulcan/node_modules/react-dom/cjs/react-dom-server.node.development.js:3204:14)
at resolve (/Users/vipin.lahoti/Documents/meteor/Vulcan/node_modules/react-dom/cjs/react-dom-server.node.development.js:3124:5)
at ReactDOMServerRenderer.render (/Users/vipin.lahoti/Documents/meteor/Vulcan/node_modules/react-dom/cjs/react-dom-server.node.development.js:3598:22)
at ReactDOMServerRenderer.read (/Users/vipin.lahoti/Documents/meteor/Vulcan/node_modules/react-dom/cjs/react-dom-server.node.development.js:3536:29)
at renderToStaticMarkup (/Users/vipin.lahoti/Documents/meteor/Vulcan/node_modules/react-dom/cjs/react-dom-server.node.development.js:4261:27)
at /Users/vipin.lahoti/Documents/meteor/Vulcan/node_modules/@apollo/client/react/ssr/ssr.cjs.js:81:21
at new Promise ()
at process (/Users/vipin.lahoti/Documents/meteor/Vulcan/node_modules/@apollo/client/react/ssr/ssr.cjs.js:79:16)
at /Users/vipin.lahoti/.meteor/packages/promise/.0.11.2.1xavwef.9sbp++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
=> awaited here:
at Function.Promise.await (/Users/vipin.lahoti/.meteor/packages/promise/.0.11.2.1xavwef.9sbp++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/promise_server.js:56:12)
at packages/vulcan:lib/lib/server/apollo-ssr/renderPage.js:61:7
at /Users/vipin.lahoti/.meteor/packages/promise/.0.11.2.1xavwef.9sbp++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40

@ErikDakoda
Copy link
Contributor

It sound like you need to add the react-cookie NPM package to your project

@eric-burel
Copy link
Contributor

Yeah the starter has been updated with this, it's always the reference (there is no known way to keep them in sync sorry, and there were no libraries to do that last time I checked)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants