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

isomorphic-unfetch error #352

Open
mstuart1 opened this issue Mar 24, 2023 · 1 comment
Open

isomorphic-unfetch error #352

mstuart1 opened this issue Mar 24, 2023 · 1 comment

Comments

@mstuart1
Copy link

mstuart1 commented Mar 24, 2023

When following the readme, I installed citysdk using npm install, then added the example code to my script and I get this error:

import census from 'citysdk'

census(
  {
    vintage: 2015, // required
    geoHierarchy: {
      // required
      county: {
        lat: 28.2639,
        lng: -80.7214,
      },
    },
    sourcePath: ['cbp'], // required
    values: ['ESTAB'], // required

  },
  (err, res) => console.log(res)
)

result is Module not found: Error: Can't resolve 'isomorphic-unfetch' in '/[...]/node_modules/citysdk'

This is inside a module of a react app.

I am guessing I am doing something wrong because there are no mentions of this error anywhere online but I cannot find any documentation to do anything differently. Any help is welcome.

@loganpowell
Copy link
Member

Hi @mstuart1 have you tried npm install isomorphic-unfetch?

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

2 participants