transliteration: Can't resolve "core-js" dependency. [BUG]
Hi there, so here is my issue.
I’m having package A which has transliteration as a dependency. And there is also package B, which has package A as a dependency. Once I’m building package A with webpack build is broken and i’m getting this error:
ERROR in ./node_modules/package-a/node_modules/transliteration/dist/browser/bundle.umd.min.js Module not found: Error: Can't resolve 'core-js/modules/es6.array.sort' in '/Users/igocooper/Projects/package-b/node_modules/package-a/node_modules/transliteration/dist/browser'
As a temporary workaround i’ve downgraded to v. 2.0.0 and it’s working fine. Was there any changes between 2.0.0 - 2.1.0 which might affect this?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 17 (7 by maintainers)
import { transliterate } from 'transliteration/dist/node/src/node'works for me on 2.1.4 as a workaround.Maybe this is an another bug but I got the errors after installing the package like:
Then I imported
slugifylike this:And when I restarted my project I got a bunch of the errors:
Oh wait it’s already out as 2.1.5