Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Hotfix: country-data types in dependencies

Compare
Choose a tag to compare
@favna favna released this 26 Feb 21:53
· 557 commits to master since this release

🔥 Hotfix

  • Moved @types/country-data to devDependencies thinking that would be okay but apparently it is not as it breaks TypeScript builds. So sorry! This should fix these kind of errors that were present in v2.1.0:
$ tsc
node_modules/nintendo-switch-eshop/dist/interfaces.d.ts:1:25 - error TS7016: Could not find a declaration file for module 'country-data'. '/home/favna/dev/ribbon/node_modules/country-data/index.js' implicitly has an 'any' type.
  Try `npm install @types/country-data` if it exists or add a new declaration (.d.ts) file containing `declare module 'country-data';`

1 import { Country } from 'country-data';
                          ~~~~~~~~~~~~~~


Found 1 error.

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
➜  ribbon git:(master)