Skip to content

Commit

Permalink
fix: avoid require bug in node.js 13.0
Browse files Browse the repository at this point in the history
nodejs/modules#446

    "Error: Package exports for '/data/data/com.termux/files/home/.config/yarn/global/node_modules/nanoid' do not define a valid '.' target\n"
  • Loading branch information
bluelovers authored Apr 12, 2020
1 parent ab462bf commit 6be2966
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"author": "Andrey Sitnik <andrey@sitnik.ru>",
"license": "MIT",
"repository": "ai/nanoid",
"main": "./index.js",
"browser": {
"./index.js": "./index.browser.js",
"./async/index.js": "./async/index.browser.js"
Expand Down

0 comments on commit 6be2966

Please sign in to comment.