You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
before working on this, please check if the published version of the package @actions/github is more recent than the one shown below. If it isn't there's no chance this issue can be fixed
node-fetch version 2.6.7 has been causing us some esm/cjs compatibility issues. To avoid these issues we had to manually install encoding package as a dependency. Newer versions of node-fetch package no longer have encoding package as just a peerDependency (or dependency or devDependency) and when we learn that the application is using newer version of node-fetch we can remove the dependency from package.json.
Currently the application is still using @actions/[email protected], so we can not remove encoding as a dependency yet.
Also the problem is that while [email protected] does not list encoding as a dependency, it does trying to load the library in one of its functions. At build time it would produce the following code: module.exports = eval("require")("encoding");. Which is then failing the eval("require") check on this repo.
Correct. We have also put in place a test in CI which checks what ncc generates so that we know if the issue is still there. When we remove the dummy encoding dependency, if that test fails we know that the issue is still there.
node-fetch
version 2.6.7 has been causing us someesm
/cjs
compatibility issues. To avoid these issues we had to manually installencoding
package as a dependency. Newer versions ofnode-fetch
package no longer haveencoding
package as just apeerDependency
(ordependency
ordevDependency
) and when we learn that the application is using newer version ofnode-fetch
we can remove the dependency frompackage.json
.More information about the issue:
encoding
package to preventncc
from outputtingeval("require")
#87eval('require')
oreval("require")
strings #97The text was updated successfully, but these errors were encountered: