mledoze / countries

World countries in JSON, CSV, XML and Yaml. Any help is welcome!
https://mledoze.github.io/countries/
Open Data Commons Open Database License v1.0
5.93k stars 1.26k forks source link

ERROR: Package path ./data is not exported from package #484

Closed 6uzm4n closed 10 months ago

6uzm4n commented 10 months ago

After updating with npm to version 4.1+ the following error occurs in my project:

Package path ./data is not exported from package ~/myapp/node_modules/world-countries (see exports field in ~/myapp/node_modules/world-countries/package.json)

This is something that doesn't happen in version 4.0.0

mledoze commented 10 months ago

Here is what I have:

$ npm -v
9.8.1

$ npm install world-countries

added 1 package in 3s

$ npm list
test
└── world-countries@4.1.1

Could you describe how to reproduce the error?

thevuong commented 10 months ago

I've fixed it in PR #486

mledoze commented 10 months ago

fixed by #486, thank you @thevuong