Skip to content

Commit

Permalink
update encode-utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
soldair committed Apr 21, 2023
1 parent dc20f97 commit dbbb46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"dependencies": {
"dijkstrajs": "^1.0.1",
"encode-utf8": "^1.0.3",
"encode-utf8": "^2.0.0",
"pngjs": "^5.0.0",
"yargs": "^15.3.1"
},
Expand Down

1 comment on commit dbbb46d

@angelmultivende
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, we are using qrcode "1.5.0" and apparently this change is causing this error: "
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/tychus/Documents/multivende/main-dev/node_modules/encode-utf8/index.js from /Users/tychus/Documents/multivende/main-dev/node_modules/qrcode/lib/core/byte-data.js not supported.
Instead change the require of index.js in /Users/tychus/Documents/multivende/main-dev/node_modules/qrcode/lib/core/byte-data.js to a dynamic import() which is available in all CommonJS modules.
" our node version is "16.17.0".

Please sign in to comment.