We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using this library, I needed to import with the following pattern:
import { to } from "await-to-js";
Instead of the approach in the README:
import to from "await-to-js".
Otherwise I would get an error:
TypeError: to is not a function
From adding logging to the library, it appears that the import statement is using await-to-js.umd.js and not await-to-js.es5.js.
Tested with Node v14.17.0 running as node index.mjs.
node index.mjs
The text was updated successfully, but these errors were encountered:
import statement is using await-to-js.umd.js and not await-to-js.es5.js
await-to-js.umd.js
await-to-js.es5.js
indeed. I added a console.log on dist/await-to-js.es5.js but it was not evaluated; while the one at dist/await-to-js.umd.js does 🤔
console.log
dist/await-to-js.es5.js
dist/await-to-js.umd.js
await-to-js/package.json
Lines 11 to 12 in ed778a0
Tested with Node v16.14.2
Sorry, something went wrong.
still a problem two years later, please update the readme file or fix
No branches or pull requests
When using this library, I needed to import with the following pattern:
Instead of the approach in the README:
Otherwise I would get an error:
From adding logging to the library, it appears that the import statement is using await-to-js.umd.js and not await-to-js.es5.js.
Tested with Node v14.17.0 running as
node index.mjs
.The text was updated successfully, but these errors were encountered: